config.h 339 B

123456789101112131415161718
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include <fstream>
  4. #include <map>
  5. #include <sstream>
  6. #include <vector>
  7. // loads configurationdata from config.txt
  8. namespace Config {
  9. bool init(const std::string &filename);
  10. std::string getValue(const std::string &key);
  11. extern std::map<std::string, std::string> storage;
  12. }; // namespace Config
  13. #endif