blob: fff7f9dd3bef0baa64ead3621766c3734ed1c9aa (
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
|
#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;
};
|