diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..fff7f9d --- /dev/null +++ b/config.h @@ -0,0 +1,25 @@ +#pragma once + +#include <string> + +const std::string default_config_filename{"/etc/weblog.conf"}; + +class Config +{ +private: + std::string m_dataPath; + std::string m_listenAddress; // ip address v4/v6 + int m_listenPort; + std::string m_name; + std::string m_keywords; + +public: + Config(const std::string& config_filename = default_config_filename); + std::string getDataPath() const; + + std::string getListenAddress() const; + int getListenPort() const; + + std::string getName() const; + std::string getKeywords() const; +}; |