Changeset View
Changeset View
Standalone View
Standalone View
source/ps/scripting/JSInterface_ConfigDB.h
Show All 21 Lines | |||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
#include <string> | #include <string> | ||||
namespace JSI_ConfigDB | namespace JSI_ConfigDB | ||||
{ | { | ||||
bool IsProtectedConfigName(const std::string& name); | bool IsProtectedConfigName(const std::string& name); | ||||
bool GetConfigNamespace(const std::wstring& cfgNsString, EConfigNamespace& cfgNs); | bool GetConfigNamespace(const std::wstring& cfgNsString, EConfigNamespace& cfgNs); | ||||
bool HasChanges(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString); | bool HasChanges(const std::wstring& cfgNsString); | ||||
bool SetChanges(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, bool value); | bool SetChanges(const std::wstring& cfgNsString, bool value); | ||||
std::string GetValue(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const std::string& name); | std::string GetValue(const std::wstring& cfgNsString, const std::string& name); | ||||
bool CreateValue(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const std::string& name, const std::string& value); | bool CreateValue(const std::wstring& cfgNsString, const std::string& name, const std::string& value); | ||||
bool RemoveValue(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const std::string& name); | bool RemoveValue(const std::wstring& cfgNsString, const std::string& name); | ||||
bool WriteFile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const Path& path); | bool WriteFile(const std::wstring& cfgNsString, const Path& path); | ||||
bool WriteValueToFile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const std::string& name, const std::string& value, const Path& path); | bool WriteValueToFile(const std::wstring& cfgNsString, const std::string& name, const std::string& value, const Path& path); | ||||
void CreateAndWriteValueToFile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const std::string& name, const std::string& value, const Path& path); | void CreateAndWriteValueToFile(const std::wstring& cfgNsString, const std::string& name, const std::string& value, const Path& path); | ||||
bool Reload(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString); | bool Reload(const std::wstring& cfgNsString); | ||||
bool SetFile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& cfgNsString, const Path& path); | bool SetFile(const std::wstring& cfgNsString, const Path& path); | ||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_JSI_CONFIGDB | #endif // INCLUDED_JSI_CONFIGDB |
Wildfire Games · Phabricator