#ifndef CONFIG_MANAGER_H #define CONFIG_MANAGER_H #include #include class ConfigManager { public: ConfigManager(); // Load configuration void load(); // Save configuration void save(); // Getters and setters int getWindowWidth() const { return windowWidth; } int getWindowHeight() const { return windowHeight; } int getPollingTime() const { return pollingTime; } void setWindowWidth(int w) { windowWidth = w; } void setWindowHeight(int h) { windowHeight = h; } void setPollingTime(int t) { pollingTime = t; } std::map getSensorColors() const { return sensorColors; } std::map getSensorNames() const { return sensorNames; } void setSensorColor(const std::string &id, const std::string &color) { sensorColors[id] = color; } void setSensorName(const std::string &id, const std::string &name) { sensorNames[id] = name; } private: std::string getConfigFilePath() const; int windowWidth; int windowHeight; int pollingTime; std::map sensorColors; std::map sensorNames; }; #endif // CONFIG_MANAGER_H