]> git.stg.codes - ssmd.git/blob - include/settings.inl.h
Paranoid Pdu clearing
[ssmd.git] / include / settings.inl.h
1 #ifndef __GTS_SETTINGS_INL_H__
2 #define __GTS_SETTINGS_INL_H__
3
4 #include <iostream>
5 #include <sstream>
6
7 namespace GTS {
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       _dataURL()
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 {
43 }
44
45 inline
46 Settings::~Settings()
47 {
48 }
49
50 inline
51 const Settings & Settings::operator=(const Settings & rvalue)
52 {
53     _isHelp = rvalue._isHelp;
54     _isVersion = rvalue._isVersion;
55     _isDebug = rvalue._isDebug;
56     _isDaemon = rvalue._isDaemon;
57     _configFile = rvalue._configFile;
58     _logFile = rvalue._logFile;
59     _PIDFile = rvalue._PIDFile;
60     _switchSyncInterval = rvalue._switchSyncInterval;
61     _infoSyncInterval = rvalue._infoSyncInterval;
62     _upProfileId = rvalue._upProfileId;
63     _downProfileId = rvalue._downProfileId;
64     _maxACLPerPDU = rvalue._maxACLPerPDU;
65     _dataURL = rvalue._dataURL;
66     return *this;
67 }
68
69 inline
70 SettingsParser::~SettingsParser()
71 {
72 }
73
74 inline
75 void SettingsParser::printHelp() const
76 {
77     std::cout << _desc << std::endl;
78 }
79
80 }
81
82 #endif