blob: 1a1ff8af0ab90050b6cb58b840e499378971b03c [file] [log] [blame]
akmhoque87347a32014-01-31 11:00:44 -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
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);
28
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);
34
35 int processConfCommandHyperbolicCordinate(nlsr& pnlsr, string command);
36
37 int processConfCommandNdnNeighbor(nlsr& pnlsr, string command);
38 int processConfCommandNdnName(nlsr& pnlsr, string command);
39 int processConfCommandLinkCost(nlsr& pnlsr, string command);
40
41
42 private:
43 string confFileName;
44};
45
46#endif