diff options
| author | XTZGZoReX <none@none> | 2009-03-18 20:46:39 +0100 |
|---|---|---|
| committer | XTZGZoReX <none@none> | 2009-03-18 20:46:39 +0100 |
| commit | 5184783bd165bec038273fa5cfbc593716856fc2 (patch) | |
| tree | b9d15444d71ffddeb3f8e5341a05fcec06fca2c2 /src/shared/Config/Config.h | |
| parent | 5f2e9f1ed190b3108a55efe809463c0b1ed401bd (diff) | |
* Fixed/improved the config library: Removed useless methods and fixed the existing.
* Few related changes to make the rest of the core reflect the changes.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Config/Config.h')
| -rw-r--r-- | src/shared/Config/Config.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/shared/Config/Config.h b/src/shared/Config/Config.h index 2c709f02ae5..cb7a45027df 100644 --- a/src/shared/Config/Config.h +++ b/src/shared/Config/Config.h @@ -34,19 +34,11 @@ class TRINITY_DLL_SPEC Config bool SetSource(const char *file, bool ignorecase = true); bool Reload(); - - bool GetString(const char* name, std::string *value); - bool GetString(const char* name, char const **value); - std::string GetStringDefault(const char* name, const char* def); - - bool GetBool(const char* name, bool *value); - bool GetBoolDefault(const char* name, const bool def = false); - - bool GetInt(const char* name, int *value); - int GetIntDefault(const char* name, const int def); - - bool GetFloat(const char* name, float *value); - float GetFloatDefault(const char* name, const float def); +
+ 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: |
