/*********************************/ /* */ /* o.riabenkyi@gmain.com */ /* */ /*********************************/ #ifndef CONFIG_HPP #define CONFIG_HPP #include #include "ServerConfig.hpp" // Holds every server block parsed from the configuration file and validates // them, both individually and against each other. class Config { public: Config(); void addServer(const ServerConfig &server); const std::vector &getServers() const; // Throws std::runtime_error with a descriptive message when invalid. void validate() const; private: std::vector _servers; }; #endif