| 212 | } |
| 213 | |
| 214 | CConfig::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 | |
| 226 | CMain::CMain(CConfig Config) : m_Config(Config) |
| 227 | { |
nothing calls this directly
no test coverage detected