27 #ifndef INCLUDED_CONFIGDB
28 #define INCLUDED_CONFIGDB
52 #define g_ConfigDB CConfigDB::GetSingleton()
56 static std::map <CStr, CConfigValueSet>
m_Map[];
147 #define CFG_GET_VAL(name, type, destination)\
149 CConfigValue* val = g_ConfigDB.GetValue(CFG_USER, name);\
151 val->Get##type(destination);\
std::vector< CParserValue > CConfigValueSet
std::map< CStr, CConfigValueSet > GetValuesWithPrefix(EConfigNamespace ns, const CStr &prefix)
Retrieve a map of values corresponding to settings whose names begin with the given prefix; will sear...
static VfsPath m_ConfigFile[]
EConfigNamespace GetValueNamespace(EConfigNamespace ns, const CStr &name)
Returns the namespace that the value returned by GetValues was defined in, or CFG_LAST if it wasn't d...
bool Reload(EConfigNamespace)
Reload the config file associated with the specified config namespace (the last config file path set ...
CParserValue CConfigValue
bool WriteFile(EConfigNamespace ns, const VfsPath &path)
Write the current state of the specified config namespace to the file specified by 'path'...
CConfigValueSet * GetValues(EConfigNamespace ns, const CStr &name)
Attempt to retrieve a vector of values corresponding to the given setting; will search CFG_COMMAND fi...
CConfigValue * GetValue(EConfigNamespace ns, const CStr &name)
Attempt to find a config variable with the given name; will search CFG_COMMAND first, and then all namespaces from the specified namespace down to system.
static std::map< CStr, CConfigValueSet > m_Map[]
void SetConfigFile(EConfigNamespace ns, const VfsPath &path)
Set the path to the config file used to populate the specified namespace Note that this function does...
CConfigValue * CreateValue(EConfigNamespace ns, const CStr &name)
Create a new config value in the specified namespace.