blob: 2ef8a8302e050b66d2a44b1bc0a038c37e86e552 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <filesystem>
#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::filesystem::path& config_filename = default_config_filename);
std::string getDataPath() const;
std::string getListenAddress() const;
int getListenPort() const;
std::string getName() const;
std::string getKeywords() const;
};
|