diff options
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 |