28 |
int uid; |
int uid; |
29 |
int gid; |
int gid; |
30 |
volatile bool mainContinue; |
volatile bool mainContinue; |
31 |
|
volatile bool reloadConfig; |
32 |
|
|
33 |
std::string configFilePath; |
std::string configFilePath; |
34 |
|
|
44 |
class ConfigFile* GetConfigfile(); |
class ConfigFile* GetConfigfile(); |
45 |
void SetConfigfile(class ConfigFile*); |
void SetConfigfile(class ConfigFile*); |
46 |
|
|
|
void logMessage(std::string str); |
|
|
void setLogfile(std::string file) {_logFile = file;} |
|
47 |
|
|
48 |
void loadConfig(int argc, char* argv[]); |
void loadConfig(int argc, char* argv[]); |
49 |
|
|
50 |
std::string getStatusMessage(); |
std::string getStatusMessage(); |
51 |
private: |
private: |
52 |
Common(); |
Common(); |
53 |
Common(const Common&) {} |
Common(const Common&) {} |
54 |
Common& operator=(const Common) {return *this;} |
Common& operator=(const Common) |
55 |
|
{ |
56 |
|
return *this; |
57 |
|
} |
58 |
~Common(); |
~Common(); |
59 |
|
|
60 |
|
|
65 |
|
|
66 |
void printUsage(); |
void printUsage(); |
67 |
|
|
|
std::string _logFile; |
|
68 |
}; |
}; |
69 |
|
|
70 |
|
|