MCPcopy Create free account
hub / github.com/cppla/ServerStatus / CConfig

Method CConfig

server/src/main.cpp:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214CConfig::CConfig()
215{
216 // Initialize to default values
217 m_Verbose = false; // -v, --verbose
218 str_copy(m_aConfigFile, "config.json", sizeof(m_aConfigFile)); // -c, --config
219 str_copy(m_aWebDir, "../web/", sizeof(m_aJSONFile)); // -d, --web-dir
220 str_copy(m_aTemplateFile, "template.html", sizeof(m_aTemplateFile));
221 str_copy(m_aJSONFile, "json/stats.json", sizeof(m_aJSONFile));
222 str_copy(m_aBindAddr, "", sizeof(m_aBindAddr)); // -b, --bind
223 m_Port = 35601; // -p, --port
224}
225
226CMain::CMain(CConfig Config) : m_Config(Config)
227{

Callers

nothing calls this directly

Calls 1

str_copyFunction · 0.85

Tested by

no test coverage detected