BadCompany2.MasterServer/source/Framework/Config.h
2015-10-10 17:08:19 +02:00

28 lines
657 B
C++

#include "../main.h"
class Config
{
private:
string data;
debugSettings debugCfg;
connectionSettings portsCfg;
emulatorSettings emuCfg;
consoleSettings conCfg;
string getValue(const char* key);
bool setValue(string value, int& storage);
bool setValue(string value, bool& storage);
bool setValue(string value, string& storage, bool allow_empty = false);
bool getValuesFromSection(const char* section);
bool createDefaultConfig();
bool storeValues();
public:
Config();
bool loadConfigFile();
debugSettings getDebugCfg();
consoleSettings getConCfg();
emulatorSettings getEmuCfg();
connectionSettings getPortsCfg();
};