27 #include <boost/property_tree/ptree.hpp>
38 bool LoadInitial(std::string
const& file, std::string& error);
42 bool Reload(std::string& error);
44 std::string GetStringDefault(std::string
const& name,
const std::string& def)
const;
45 bool GetBoolDefault(std::string
const& name,
bool def)
const;
46 int GetIntDefault(std::string
const& name,
int def)
const;
47 float GetFloatDefault(std::string
const& name,
float def)
const;
49 std::string
const& GetFilename();
50 std::list<std::string> GetKeysByString(std::string
const& name);
58 T GetValueDefault(std::string
const& name, T def)
const;
61 #define sConfigMgr ConfigMgr::instance()
std::mutex _configLock
Definition: Config.h:55
std::string _filename
Definition: Config.h:53
Vector2int16 & operator=(const Any &a)
#define TC_COMMON_API
Definition: Define.h:116
boost::property_tree::ptree _config
Definition: Config.h:54