1 |
afaq |
1.1 |
#include <string>
|
2 |
|
|
class Configuration {
|
3 |
|
|
|
4 |
|
|
public:
|
5 |
|
|
static Configuration* instance();
|
6 |
|
|
int getPort();
|
7 |
|
|
int getBacklog();
|
8 |
|
|
std::string getLog();
|
9 |
|
|
std::string getDsn();
|
10 |
|
|
std::string getDbUser();
|
11 |
|
|
std::string getDbPasswd();
|
12 |
|
|
std::string getServerType();
|
13 |
|
|
private:
|
14 |
|
|
Configuration();
|
15 |
|
|
Configuration(const Configuration&);
|
16 |
|
|
Configuration& operator= (const Configuration&);
|
17 |
|
|
static Configuration* pinstance;
|
18 |
|
|
int port;
|
19 |
|
|
int backlog;
|
20 |
|
|
std::string logFile;
|
21 |
|
|
std::string dsn;
|
22 |
|
|
std::string dbuser;
|
23 |
|
|
std::string dbpasswd;
|
24 |
|
|
std::string xyz;
|
25 |
|
|
std::string servertype;
|
26 |
|
|
|
27 |
|
|
};
|