akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 1 | #ifndef CONF_PROCESSOR_HPP |
| 2 | #define CONF_PROCESSOR_HPP |
| 3 | |
| 4 | #include "nlsr.hpp" |
| 5 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame^] | 6 | namespace nlsr { |
| 7 | |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 8 | using namespace std; |
| 9 | |
| 10 | class ConfFileProcessor{ |
| 11 | public: |
| 12 | ConfFileProcessor() |
| 13 | :confFileName() |
| 14 | { |
| 15 | } |
| 16 | ConfFileProcessor(const string& cfile){ |
| 17 | confFileName=cfile; |
| 18 | } |
| 19 | |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 20 | int processConfFile(Nlsr& pnlsr); |
| 21 | int processConfCommand(Nlsr& pnlsr, string command); |
| 22 | int processConfCommandNetwork(Nlsr& pnlsr, string command); |
| 23 | int processConfCommandSiteName(Nlsr& pnlsr, string command); |
| 24 | int processConfCommandRouterName(Nlsr& pnlsr, string command); |
| 25 | int processConfCommandInterestRetryNumber(Nlsr& pnlsr, string command); |
| 26 | int processConfCommandInterestResendTime(Nlsr& pnlsr, string command); |
| 27 | int processConfCommandLsaRefreshTime(Nlsr& pnlsr, string command); |
| 28 | int processConfCommandMaxFacesPerPrefix(Nlsr& pnlsr, string command); |
| 29 | int processConfCommandTunnelType(Nlsr& pnlsr, string command); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 30 | |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 31 | int processConfCommandChronosyncSyncPrefix(Nlsr& pnlsr, string command); |
| 32 | int processConfCommandLogDir(Nlsr& pnlsr, string command); |
| 33 | int processConfCommandDebugging(Nlsr& pnlsr, string command); |
| 34 | int processConfCommandDetailedLogging(Nlsr& pnlsr, string command); |
| 35 | int processConfCommandIsHyperbolicCalc(Nlsr& pnlsr, string command); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 36 | |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 37 | int processConfCommandHyperbolicCordinate(Nlsr& pnlsr, string command); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 38 | |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 39 | int processConfCommandNdnNeighbor(Nlsr& pnlsr, string command); |
| 40 | int processConfCommandNdnName(Nlsr& pnlsr, string command); |
| 41 | int processConfCommandLinkCost(Nlsr& pnlsr, string command); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 42 | |
| 43 | |
| 44 | private: |
| 45 | string confFileName; |
| 46 | }; |
| 47 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame^] | 48 | } //namespace nlsr |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 49 | #endif |