blob: 55680100ad7730ac6c995a8b1bad929661bfa5be [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
akmhoqueb1710aa2014-02-19 17:13:36 -06006namespace nlsr {
7
akmhoque298385a2014-02-13 14:13:09 -06008using namespace std;
9
10class ConfFileProcessor{
11 public:
12 ConfFileProcessor()
13 :confFileName()
14 {
15 }
16 ConfFileProcessor(const string& cfile){
17 confFileName=cfile;
18 }
19
akmhoque1a481092014-02-19 16:34:22 -060020 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);
akmhoque298385a2014-02-13 14:13:09 -060030
akmhoque1a481092014-02-19 16:34:22 -060031 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);
akmhoque298385a2014-02-13 14:13:09 -060036
akmhoque1a481092014-02-19 16:34:22 -060037 int processConfCommandHyperbolicCordinate(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060038
akmhoque1a481092014-02-19 16:34:22 -060039 int processConfCommandNdnNeighbor(Nlsr& pnlsr, string command);
40 int processConfCommandNdnName(Nlsr& pnlsr, string command);
41 int processConfCommandLinkCost(Nlsr& pnlsr, string command);
akmhoque298385a2014-02-13 14:13:09 -060042
43
44 private:
45 string confFileName;
46};
47
akmhoqueb1710aa2014-02-19 17:13:36 -060048} //namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -060049#endif