diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-30 21:39:53 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-30 21:39:53 +0000 |
commit | 62161ab3531cc33699e6c5f990acc3e1a099a786 (patch) | |
tree | 9ff2425ba210e39740a19232a3c0826dd717453c /src/configuration.h | |
parent | d0fca301c35ddd1e0091b31e36547143ecbf7076 (diff) | |
download | mana-62161ab3531cc33699e6c5f990acc3e1a099a786.tar.gz mana-62161ab3531cc33699e6c5f990acc3e1a099a786.tar.bz2 mana-62161ab3531cc33699e6c5f990acc3e1a099a786.tar.xz mana-62161ab3531cc33699e6c5f990acc3e1a099a786.zip |
- ported Configuration from lists to map
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/configuration.h b/src/configuration.h index 45c443f8..e4239ef0 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -25,7 +25,7 @@ #define INI_DELIMITER "=" #define INI_COMMENTER "#" -#include <list> +#include <map> #include <string> #include <iostream> #include <fstream> @@ -50,13 +50,12 @@ class Configuration { bool keyExists(std::string); typedef struct INI_OPTION { - std::string key; std::string stringValue; float numericValue; }; - std::list<INI_OPTION> iniOptions; - std::list<INI_OPTION>::iterator iter; + std::map<std::string, INI_OPTION> iniOptions; + std::map<std::string, INI_OPTION>::iterator iter; }; #endif |