00001 #ifndef CONFIG_HPP 00002 #define CONFIG_HPP 00003 00004 #include <string> 00005 #include <map> 00006 00007 using namespace std; 00008 00009 00018 class Config{ 00019 00020 private: 00021 00022 00023 std::map<std::string, std::string> configs; 00025 public: 00026 00032 Config(string configFile); 00033 00034 00042 void addConf(string conf, string value); 00043 00044 00050 string getConf(const string & conf) const; 00051 00052 }; 00053 00054 #endif//CONFIG_HPP 00055