]> git.stg.codes - ssmd.git/blob - include/settings.inl.h
Ignore more files.
[ssmd.git] / include / settings.inl.h
1 #ifndef __SSMD_SETTINGS_INL_H__
2 #define __SSMD_SETTINGS_INL_H__
3
4 #include <iostream>
5 #include <sstream>
6
7 namespace SSMD {
8
9 inline
10 Settings::Settings()
11     : _isHelp(true),
12       _isVersion(false),
13       _isDebug(false),
14       _isDaemon(false),
15       _configFile("/etc/gssmd/gssmd.conf"),
16       _logFile("/var/log/gssmd.log"),
17       _PIDFile("/var/run/gssmd.pid"),
18       _switchSyncInterval(180),
19       _infoSyncInterval(60),
20       _upProfileId(1),
21       _downProfileId(2),
22       _maxACLPerPDU(50),
23       _dumpScripts(false)
24 {
25 }
26
27 inline
28 Settings::Settings(const Settings & rvalue)
29     : _isHelp(rvalue._isHelp),
30       _isVersion(rvalue._isVersion),
31       _isDebug(rvalue._isDebug),
32       _isDaemon(rvalue._isDaemon),
33       _configFile(rvalue._configFile),
34       _logFile(rvalue._logFile),
35       _PIDFile(rvalue._PIDFile),
36       _switchSyncInterval(rvalue._switchSyncInterval),
37       _infoSyncInterval(rvalue._infoSyncInterval),
38       _upProfileId(rvalue._upProfileId),
39       _downProfileId(rvalue._downProfileId),
40       _maxACLPerPDU(rvalue._maxACLPerPDU),
41       _dataURL(rvalue._dataURL),
42       _scriptBase(rvalue._scriptBase),
43       _dumpScripts(rvalue._dumpScripts)
44 {
45 }
46
47 inline
48 Settings::~Settings()
49 {
50 }
51
52 inline
53 const Settings & Settings::operator=(const Settings & rvalue)
54 {
55     _isHelp = rvalue._isHelp;
56     _isVersion = rvalue._isVersion;
57     _isDebug = rvalue._isDebug;
58     _isDaemon = rvalue._isDaemon;
59     _configFile = rvalue._configFile;
60     _logFile = rvalue._logFile;
61     _PIDFile = rvalue._PIDFile;
62     _switchSyncInterval = rvalue._switchSyncInterval;
63     _infoSyncInterval = rvalue._infoSyncInterval;
64     _upProfileId = rvalue._upProfileId;
65     _downProfileId = rvalue._downProfileId;
66     _maxACLPerPDU = rvalue._maxACLPerPDU;
67     _dataURL = rvalue._dataURL;
68     _scriptBase = rvalue._scriptBase;
69     _dumpScripts = rvalue._dumpScripts;
70     return *this;
71 }
72
73 inline
74 SettingsParser::~SettingsParser()
75 {
76 }
77
78 inline
79 void SettingsParser::printHelp() const
80 {
81     std::cout << _desc << std::endl;
82 }
83
84 }
85
86 #endif