blob: a17ba12b1cad184ff1ee4600ddeb829f3f97f92c [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef CONF_PROCESSOR_HPP
2#define CONF_PROCESSOR_HPP
3
4#include "nlsr.hpp"
5
6namespace nlsr {
7class ConfFileProcessor
8{
9public:
10 ConfFileProcessor()
11 : m_confFileName()
12 {
13 }
14
15 ConfFileProcessor(const string& cfile)
16 {
17 m_confFileName = cfile;
18 }
19
20 int processConfFile(Nlsr& pnlsr);
21
22private:
23 int
24 processConfCommand(Nlsr& pnlsr, string command);
25
26 int
27 processConfCommandNetwork(Nlsr& pnlsr, string command);
28
29 int
30 processConfCommandSiteName(Nlsr& pnlsr, string command);
31
32 int
33 processConfCommandRootKeyPrefix(Nlsr& pnlsr, string command);
34
35 int
36 processConfCommandRouterName(Nlsr& pnlsr, string command);
37
38 int
39 processConfCommandInterestRetryNumber(Nlsr& pnlsr, string command);
40
41 int
42 processConfCommandInterestResendTime(Nlsr& pnlsr, string command);
43
44 int
45 processConfCommandLsaRefreshTime(Nlsr& pnlsr, string command);
46
47 int
48 processConfCommandMaxFacesPerPrefix(Nlsr& pnlsr, string command);
49
50 int
51 processConfCommandTunnelType(Nlsr& pnlsr, string command);
52
53 int
54 processConfCommandChronosyncSyncPrefix(Nlsr& pnlsr, string command);
55
56 int
57 processConfCommandLogDir(Nlsr& pnlsr, string command);
58
59 int
60 processConfCommandCertDir(Nlsr& pnlsr, string command);
61
62 int
63 processConfCommandDebugging(Nlsr& pnlsr, string command);
64
65 int
66 processConfCommandDetailedLogging(Nlsr& pnlsr, string command);
67
68 int
69 processConfCommandIsHyperbolicCalc(Nlsr& pnlsr, string command);
70
71 int
72 processConfCommandHyperbolicCordinate(Nlsr& pnlsr, string command);
73
74 int
75 processConfCommandNdnNeighbor(Nlsr& pnlsr, string command);
76
77 int
78 processConfCommandNdnName(Nlsr& pnlsr, string command);
79
80 int
81 processConfCommandLinkCost(Nlsr& pnlsr, string command);
82
83
84private:
85 string m_confFileName;
86};
87
88} //namespace nlsr
89#endif //CONF_PROCESSOR_HPP