#pragma once #include #include namespace inaf::oasbo::Configurators { class BaseConfigurator{ protected: std::map config; public: virtual int readConfigFromSource() = 0; virtual int readConfigFromSource(std::string target) = 0; virtual int pushConfigToSource() = 0; virtual int pushConfigToSource(std::string target) = 0; virtual int insert(std::map, std::string target) = 0; virtual std::map getConfig() {return this->config;} std::string toString(){ std::string ret = ""; for( const std::pair n : config) { ret += n.first + " : " + n.second + "\n"; } return ret; } virtual ~BaseConfigurator() = default; }; }