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