#pragma once #include #include #include #include #include #include #include class SystemConfig { public: void readStandardConfig(); SystemConfig(); static int getIntConfigParameter(std::string paramName); static float getFloatConfigParameter(std::string paramName); static std::string getStringConfigParameter(std::string paramName); private: //Parameters to read from the file (name and default value) static std::map intParameter; static std::map floatParameter; static std::map stringParameter; const std::string filePath = "system_conf.conf"; std::string fileContent; void parseConfFile(); friend std::ostream& operator<<(std::ostream& os, SystemConfig& config); };