summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-09-12 19:42:54 +0300
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-09-15 23:56:23 +0200
commita0f916771ba031d43ccb75623fd7cd472c8f360d (patch)
tree1a3bec58053f00d20cd1e6a9885cfdb3b9b1e878 /src/configuration.h
parent993e746249ea0dddcfc5edcbe9a4e2fb61f839e6 (diff)
downloadmana-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.h5
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.