26 #include <boost/property_tree/ptree.hpp>
27 #include <boost/filesystem.hpp>
28 #include <boost/algorithm/string/replace.hpp>
33 namespace fs = boost::filesystem;
133 boost::property_tree::ptree m_propertyTree;
134 bool m_profileNeedSave;
135 std::string m_userDirectory;
141 return *CProfile::GetInstancePointer();
bool SetLocalProfileFloat(std::string section, std::string key, float value)
Definition: profile.cpp:147
bool GetLocalProfileString(std::string section, std::string key, std::string &buffer)
Definition: profile.cpp:101
CSingleton base class for singletons.
bool SetLocalProfileString(std::string section, std::string key, std::string value)
Definition: profile.cpp:85
bool InitCurrentDirectory()
Definition: profile.cpp:46
bool CopyFileToTemp(std::string filename)
Definition: profile.cpp:230
Definition: singleton.h:27
bool GetLocalProfileFloat(std::string section, std::string key, float &value)
Definition: profile.cpp:163
bool SaveCurrentDirectory()
Definition: profile.cpp:64
void SetUserDir(std::string dir)
Definition: profile.cpp:202
bool SetLocalProfileInt(std::string section, std::string key, int value)
Definition: profile.cpp:116
std::string GetUserBasedPath(std::string dir, std::string default_dir)
Definition: profile.cpp:208
std::vector< std::string > GetLocalProfileSection(std::string section, std::string key)
Definition: profile.cpp:178
Class for loading profile (currently for loading ini config file)
Definition: profile.h:42
CProfile & GetProfile()
Global function to get profile instance.
Definition: profile.h:139
bool GetLocalProfileInt(std::string section, std::string key, int &value)
Definition: profile.cpp:132