-
Notifications
You must be signed in to change notification settings - Fork 0
/
appconf.h
49 lines (39 loc) · 892 Bytes
/
appconf.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include <string>
class AppConf
{
public:
struct FcgiParamsStruct;
struct DBusParamsStruct;
AppConf();
const FcgiParamsStruct & GetFcgiParams() const;
const DBusParamsStruct & GetDBusParams() const;
struct FcgiParamsStruct
{
FcgiParamsStruct()
{
sockPath = ":5000";
queueLength = 0;
threadsNum = 1;
}
std::string sockPath;
int queueLength;
int threadsNum;
}fcgiParams;
struct DBusParamsStruct
{
DBusParamsStruct()
{
period = 60;
name = "test.method.server";
}
int period;
std::string name;
}dBusParams;
private:
bool LoadConfiguration();
bool CreateConfiguration();
static const char * CONF_FILENAME;
};
#endif // CONFIGURATION_H