29 #include <boost/property_tree/ptree.hpp>
30 #include <boost/filesystem.hpp>
31 #include <boost/algorithm/string/replace.hpp>
36 namespace fs = boost::filesystem;
78 bool GetStringProperty(std::string section, std::string key, std::string& buffer);
86 bool SetIntProperty(std::string section, std::string key,
int value);
94 bool GetIntProperty(std::string section, std::string key,
int &value);
117 std::vector< std::string >
GetSection(std::string section, std::string key);
120 boost::property_tree::ptree m_propertyTree;
121 bool m_profileNeedSave;
122 bool m_useCurrentDirectory;
128 return *CProfile::GetInstancePointer();
CSingleton base class for singletons.
bool SetIntProperty(std::string section, std::string key, int value)
Definition: profile.cpp:165
void SetUseCurrentDirectory(bool useCurrentDirectory)
Definition: profile.cpp:52
Definition: singleton.h:30
bool Save()
Definition: profile.cpp:94
std::vector< std::string > GetSection(std::string section, std::string key)
Definition: profile.cpp:227
bool GetStringProperty(std::string section, std::string key, std::string &buffer)
Definition: profile.cpp:150
bool GetIntProperty(std::string section, std::string key, int &value)
Definition: profile.cpp:181
Class for loading profile (currently for loading ini config file)
Definition: profile.h:45
bool Init()
Definition: profile.cpp:57
bool SetFloatProperty(std::string section, std::string key, float value)
Definition: profile.cpp:196
CProfile & GetProfile()
Global function to get profile instance.
Definition: profile.h:126
bool GetFloatProperty(std::string section, std::string key, float &value)
Definition: profile.cpp:212
bool SetStringProperty(std::string section, std::string key, std::string value)
Definition: profile.cpp:134