aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Config/Config.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 15:35:07 -0700
committermaximius <none@none>2009-10-17 15:35:07 -0700
commit26b5e033ffde3d161382fc9addbfa99738379641 (patch)
treea344f369ca32945f787a02dee35c3dbe342bed7e /src/shared/Config/Config.h
parentf21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff)
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
Diffstat (limited to 'src/shared/Config/Config.h')
-rw-r--r--src/shared/Config/Config.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/shared/Config/Config.h b/src/shared/Config/Config.h
index 7070e6180c0..582c5266a8c 100644
--- a/src/shared/Config/Config.h
+++ b/src/shared/Config/Config.h
@@ -17,37 +17,28 @@
* 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 <Policies/Singleton.h>
#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<Config>::Instance()
-
#endif