blob: e97261e8dc646041a20f543e2eb237ca9e772a81 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef CONF_PROCESSOR_HPP
2#define CONF_PROCESSOR_HPP
3
akmhoque1fd8c1e2014-02-19 19:41:49 -06004#include "nlsr.hpp"
akmhoque298385a2014-02-13 14:13:09 -06005
akmhoque1fd8c1e2014-02-19 19:41:49 -06006namespace nlsr
7{
akmhoqueb1710aa2014-02-19 17:13:36 -06008
akmhoque1fd8c1e2014-02-19 19:41:49 -06009 using namespace std;
akmhoque298385a2014-02-13 14:13:09 -060010
akmhoque1fd8c1e2014-02-19 19:41:49 -060011 class ConfFileProcessor
12 {
13 public:
14 ConfFileProcessor()
15 :confFileName()
16 {
17 }
18 ConfFileProcessor(const string& cfile)
19 {
20 confFileName=cfile;
21 }
akmhoque298385a2014-02-13 14:13:09 -060022
akmhoque1fd8c1e2014-02-19 19:41:49 -060023 int processConfFile(Nlsr& pnlsr);
24 int processConfCommand(Nlsr& pnlsr, string command);
25 int processConfCommandNetwork(Nlsr& pnlsr, string command);
26 int processConfCommandSiteName(Nlsr& pnlsr, string command);
akmhoque2bb198e2014-02-28 11:46:27 -060027 int processConfCommandRootKeyPrefix(Nlsr& pnlsr, string command);
akmhoque1fd8c1e2014-02-19 19:41:49 -060028 int processConfCommandRouterName(Nlsr& pnlsr, string command);
29 int processConfCommandInterestRetryNumber(Nlsr& pnlsr, string command);
30 int processConfCommandInterestResendTime(Nlsr& pnlsr, string command);
31 int processConfCommandLsaRefreshTime(Nlsr& pnlsr, string command);
32 int processConfCommandMaxFacesPerPrefix(Nlsr& pnlsr, string command);
33 int processConfCommandTunnelType(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060034
akmhoque1fd8c1e2014-02-19 19:41:49 -060035 int processConfCommandChronosyncSyncPrefix(Nlsr& pnlsr, string command);
36 int processConfCommandLogDir(Nlsr& pnlsr, string command);
37 int processConfCommandDebugging(Nlsr& pnlsr, string command);
38 int processConfCommandDetailedLogging(Nlsr& pnlsr, string command);
39 int processConfCommandIsHyperbolicCalc(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060040
akmhoque1fd8c1e2014-02-19 19:41:49 -060041 int processConfCommandHyperbolicCordinate(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060042
akmhoque1fd8c1e2014-02-19 19:41:49 -060043 int processConfCommandNdnNeighbor(Nlsr& pnlsr, string command);
44 int processConfCommandNdnName(Nlsr& pnlsr, string command);
45 int processConfCommandLinkCost(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060046
akmhoque1fd8c1e2014-02-19 19:41:49 -060047
48 private:
49 string confFileName;
50 };
akmhoque298385a2014-02-13 14:13:09 -060051
akmhoqueb1710aa2014-02-19 17:13:36 -060052} //namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -060053#endif