config.h 296 B

12345678910111213141516171819
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include <map>
  4. #include <fstream>
  5. #include <sstream>
  6. #include <vector>
  7. // loads configurationdata from config.txt
  8. class Config {
  9. public:
  10. bool init();
  11. std::string getValue(std::string key);
  12. private:
  13. std::map<std::string, std::string> storage;
  14. };
  15. #endif