{\
CHECK_NS(;);\
std::lock_guard<std::recursive_mutex> s(m_Mutex);\
TConfigMap::iterator it = m_Map[
CFG_COMMAND].find(name);\
{\
if (!it->second.empty())\
Get(it->second[0], value);\
return;\
}\
for (int search_ns = ns; search_ns >= 0; --search_ns)\
{\
it = m_Map[search_ns].find(name);\
if (it != m_Map[search_ns].end())\
{\
if (!it->second.empty())\
Get(it->second[0], value);\
return;\
}\
}\
}
EConfigNamespace
Namespace priorities:
Definition: ConfigDB.h:47
@ CFG_COMMAND
Definition: ConfigDB.h:53
void GetValue(EConfigNamespace ns, const CStr &name, bool &value)
Attempt to retrieve the value of a config variable with the given name; will search CFG_COMMAND first...