29 #include <boost/property_tree/ptree.hpp> 72 bool SetIntProperty(std::string section, std::string key,
int value);
83 bool GetIntProperty(std::string section, std::string key,
int &value);
101 bool GetBoolProperty(std::string section, std::string key,
bool &value);
104 boost::property_tree::ptree m_propertyTree;
106 bool m_useCurrentDirectory;
113 return CConfigFile::GetInstance();
CSingleton base class for singletons.
bool GetIntProperty(std::string section, std::string key, int &value)
Definition: config_file.cpp:188
void SetUseCurrentDirectory(bool useCurrentDirectory)
Definition: config_file.cpp:59
bool SetBoolProperty(std::string section, std::string key, bool value)
Definition: config_file.cpp:203
Definition: singleton.h:30
bool GetBoolProperty(std::string section, std::string key, bool &value)
Definition: config_file.cpp:208
bool SetIntProperty(std::string section, std::string key, int value)
Definition: config_file.cpp:173
Class for loading config file.
Definition: config_file.h:40
bool GetStringProperty(std::string section, std::string key, std::string &value)
Definition: config_file.cpp:158
bool GetFloatProperty(std::string section, std::string key, float &value)
Definition: config_file.cpp:247
bool Init()
Definition: config_file.cpp:64
bool SetStringProperty(std::string section, std::string key, std::string value)
Definition: config_file.cpp:143
bool Save()
Definition: config_file.cpp:102
bool SetFloatProperty(std::string section, std::string key, float value)
Definition: config_file.cpp:232
CConfigFile & GetConfigFile()
Global function to get config file instance.
Definition: config_file.h:111