From e585187b248f48b3c6e9247b49fa07c6565d65e5 Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 17 Oct 2009 15:51:44 -0700 Subject: *Backed out changeset 3be01fb200a5 --HG-- branch : trunk --- src/shared/Config/Config.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/shared/Config/Config.h') diff --git a/src/shared/Config/Config.h b/src/shared/Config/Config.h index 582c5266a8c..7070e6180c0 100644 --- a/src/shared/Config/Config.h +++ b/src/shared/Config/Config.h @@ -17,28 +17,37 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #ifndef CONFIG_H #define CONFIG_H + #include #include "Platform/Define.h" + class DOTCONFDocument; + class TRINITY_DLL_SPEC Config { public: Config(); ~Config(); + bool SetSource(const char *file, bool ignorecase = true); bool Reload(); + std::string GetStringDefault(const char * name, std::string def); bool GetBoolDefault(const char * name, const bool def); int32 GetIntDefault(const char * name, const int32 def); float GetFloatDefault(const char * name, const float def); + std::string GetFilename() const { return mFilename; } private: std::string mFilename; bool mIgnoreCase; DOTCONFDocument *mConf; }; + #define sConfig Trinity::Singleton::Instance() + #endif -- cgit v1.2.3