diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-09-12 19:42:54 +0300 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-09-15 23:56:23 +0200 |
commit | a0f916771ba031d43ccb75623fd7cd472c8f360d (patch) | |
tree | 1a3bec58053f00d20cd1e6a9885cfdb3b9b1e878 /src/configuration.h | |
parent | 993e746249ea0dddcfc5edcbe9a4e2fb61f839e6 (diff) | |
download | mana-a0f916771ba031d43ccb75623fd7cd472c8f360d.tar.gz mana-a0f916771ba031d43ccb75623fd7cd472c8f360d.tar.bz2 mana-a0f916771ba031d43ccb75623fd7cd472c8f360d.tar.xz mana-a0f916771ba031d43ccb75623fd7cd472c8f360d.zip |
Improve speed in configuration get methods.
Small code style changes
Reviewed-by: Bertram.
Resolves: Mana-Mantis #227.
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configuration.h b/src/configuration.h index 761cc43b..451b55a3 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -252,10 +252,15 @@ class Configuration : public ConfigurationObject * @see defaults.h */ int getIntValue(const std::string &key) const; + float getFloatValue(const std::string &key) const; + std::string getStringValue(const std::string &key) const; + bool getBoolValue(const std::string &key) const; + Mana::VariableData* getDefault(const std::string &key, + Mana::VariableData::DataType type) const; private: /** * Clean up the default values member. |