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