Changeset View
Changeset View
Standalone View
Standalone View
source/ps/ConfigDB.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
typedef std::vector<CStr> CConfigValueSet; | typedef std::vector<CStr> CConfigValueSet; | ||||
#define g_ConfigDB CConfigDB::GetSingleton() | #define g_ConfigDB CConfigDB::GetSingleton() | ||||
class CConfigDB : public Singleton<CConfigDB> | class CConfigDB : public Singleton<CConfigDB> | ||||
{ | { | ||||
public: | public: | ||||
CConfigDB(); | |||||
/** | /** | ||||
* Attempt to retrieve the value of a config variable with the given name; | * Attempt to retrieve the value of a config variable with the given name; | ||||
* will search CFG_COMMAND first, and then all namespaces from the specified | * will search CFG_COMMAND first, and then all namespaces from the specified | ||||
* namespace down. | * namespace down. | ||||
*/ | */ | ||||
void GetValue(EConfigNamespace ns, const CStr& name, bool& value); | void GetValue(EConfigNamespace ns, const CStr& name, bool& value); | ||||
///@copydoc CConfigDB::GetValue | ///@copydoc CConfigDB::GetValue | ||||
void GetValue(EConfigNamespace ns, const CStr& name, int& value); | void GetValue(EConfigNamespace ns, const CStr& name, int& value); | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator