MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / GetVariableInt

Method GetVariableInt

common/json_config.cpp:97–113  ·  view source on GitHub ↗

* @param title * @param parameter * @param default_value * @return */

Source from the content-addressed store, hash-verified

95 * @return
96 */
97int EQ::JsonConfigFile::GetVariableInt(
98 const std::string &title,
99 const std::string &parameter,
100 const int default_value
101)
102{
103 try {
104 if (m_root.isMember(title) && m_root[title].isMember(parameter)) {
105 return m_root[title][parameter].asInt();
106 }
107 }
108 catch (std::exception &) {
109 return default_value;
110 }
111
112 return default_value;
113}
114
115/**
116 * @param title

Callers 5

WorldServerManagerMethod · 0.80
ClientManagerMethod · 0.80
LoadDatabaseConnectionFunction · 0.80
LoadServerConfigFunction · 0.80
start_web_serverFunction · 0.80

Calls 2

isMemberMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected