diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-26 05:52:24 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-26 05:52:24 +0000 |
commit | c1ad3223a1c7ac9d85fa4057c4d43123544e1b5a (patch) | |
tree | 1b07892559fddaa2127ea7b9a808ed60e0bc8228 /src/configuration.cpp | |
parent | b82691d524fa9149dd298c505723f79cefcd3851 (diff) | |
download | mana-c1ad3223a1c7ac9d85fa4057c4d43123544e1b5a.tar.gz mana-c1ad3223a1c7ac9d85fa4057c4d43123544e1b5a.tar.bz2 mana-c1ad3223a1c7ac9d85fa4057c4d43123544e1b5a.tar.xz mana-c1ad3223a1c7ac9d85fa4057c4d43123544e1b5a.zip |
added some doxgen comments
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 011e8787..4c67a9f4 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -22,6 +22,10 @@ #include "configuration.h" +/** + \brief read INI file and parse all options into memory + \param filename full path to INI file (~/.manaworld/tmw.ini) +*/ void Configuration::Init(std::string filename) { inFile.open(filename.c_str(), std::ifstream::in); std::string inBuffer; @@ -63,6 +67,11 @@ bool Configuration::setValue(std::string, std::string) { return true; } +/** + \brief get a value as string + \param key option identifier + \param deflt default option if not there or error +*/ std::string Configuration::getValue(std::string key, std::string deflt) { INI_OPTION optionTmp; for (iter = iniOptions.begin(); iter != iniOptions.end(); iter++) { @@ -74,6 +83,11 @@ std::string Configuration::getValue(std::string key, std::string deflt) { return deflt; } +/** + \brief get a value as numeric value (float) + \param key option identifier + \param deflt default option if not there or error +*/ float Configuration::getValue(std::string key, float deflt) { INI_OPTION optionTmp; for (iter = iniOptions.begin(); iter != iniOptions.end(); iter++) { |