blob: 32b1cfb27eeef6a384c6675721d950c7d4113cf8 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef CONF_PROCESSOR_HPP
2#define CONF_PROCESSOR_HPP
3
4#include "nlsr.hpp"
5
6using namespace std;
7
8class ConfFileProcessor{
9 public:
10 ConfFileProcessor()
11 :confFileName()
12 {
13 }
14 ConfFileProcessor(const string& cfile){
15 confFileName=cfile;
16 }
17
akmhoque1a481092014-02-19 16:34:22 -060018 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);
akmhoque298385a2014-02-13 14:13:09 -060028
akmhoque1a481092014-02-19 16:34:22 -060029 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);
akmhoque298385a2014-02-13 14:13:09 -060034
akmhoque1a481092014-02-19 16:34:22 -060035 int processConfCommandHyperbolicCordinate(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060036
akmhoque1a481092014-02-19 16:34:22 -060037 int processConfCommandNdnNeighbor(Nlsr& pnlsr, string command);
38 int processConfCommandNdnName(Nlsr& pnlsr, string command);
39 int processConfCommandLinkCost(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060040
41
42 private:
43 string confFileName;
44};
45
46#endif