blob: c4015a3c827e6259f4a47742d912085290426456 [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef CONF_PROCESSOR_HPP
2#define CONF_PROCESSOR_HPP
3
4#include "nlsr.hpp"
5
6namespace nlsr {
akmhoqueb6450b12014-04-24 00:01:03 -05007
akmhoque53353462014-04-22 08:43:45 -05008class ConfFileProcessor
9{
10public:
akmhoqueb6450b12014-04-24 00:01:03 -050011 ConfFileProcessor(Nlsr& nlsr, const string& cfile)
12 : m_confFileName(cfile)
13 , m_nlsr(nlsr)
akmhoque53353462014-04-22 08:43:45 -050014 {
15 }
16
akmhoqueb6450b12014-04-24 00:01:03 -050017 int processConfFile();
akmhoque53353462014-04-22 08:43:45 -050018
19private:
20 int
akmhoqueb6450b12014-04-24 00:01:03 -050021 processConfCommand(string command);
akmhoque53353462014-04-22 08:43:45 -050022
23 int
akmhoqueb6450b12014-04-24 00:01:03 -050024 processConfCommandNetwork(string command);
akmhoque53353462014-04-22 08:43:45 -050025
26 int
akmhoqueb6450b12014-04-24 00:01:03 -050027 processConfCommandSiteName(string command);
akmhoque53353462014-04-22 08:43:45 -050028
29 int
akmhoqueb6450b12014-04-24 00:01:03 -050030 processConfCommandRootKeyPrefix(string command);
akmhoque53353462014-04-22 08:43:45 -050031
32 int
akmhoqueb6450b12014-04-24 00:01:03 -050033 processConfCommandRouterName(string command);
akmhoque53353462014-04-22 08:43:45 -050034
35 int
akmhoqueb6450b12014-04-24 00:01:03 -050036 processConfCommandInterestRetryNumber(string command);
akmhoque53353462014-04-22 08:43:45 -050037
38 int
akmhoqueb6450b12014-04-24 00:01:03 -050039 processConfCommandInterestResendTime(string command);
akmhoque53353462014-04-22 08:43:45 -050040
41 int
akmhoqueb6450b12014-04-24 00:01:03 -050042 processConfCommandLsaRefreshTime(string command);
akmhoque53353462014-04-22 08:43:45 -050043
44 int
akmhoqueb6450b12014-04-24 00:01:03 -050045 processConfCommandMaxFacesPerPrefix(string command);
akmhoque53353462014-04-22 08:43:45 -050046
47 int
akmhoqueb6450b12014-04-24 00:01:03 -050048 processConfCommandTunnelType(string command);
akmhoque53353462014-04-22 08:43:45 -050049
50 int
akmhoqueb6450b12014-04-24 00:01:03 -050051 processConfCommandChronosyncSyncPrefix(string command);
akmhoque53353462014-04-22 08:43:45 -050052
53 int
akmhoqueb6450b12014-04-24 00:01:03 -050054 processConfCommandLogDir(string command);
akmhoque53353462014-04-22 08:43:45 -050055
56 int
akmhoqueb6450b12014-04-24 00:01:03 -050057 processConfCommandCertDir(string command);
akmhoque53353462014-04-22 08:43:45 -050058
59 int
akmhoqueb6450b12014-04-24 00:01:03 -050060 processConfCommandDebugging(string command);
akmhoque53353462014-04-22 08:43:45 -050061
62 int
akmhoqueb6450b12014-04-24 00:01:03 -050063 processConfCommandDetailedLogging(string command);
akmhoque53353462014-04-22 08:43:45 -050064
65 int
akmhoqueb6450b12014-04-24 00:01:03 -050066 processConfCommandIsHyperbolicCalc(string command);
akmhoque53353462014-04-22 08:43:45 -050067
68 int
akmhoqueb6450b12014-04-24 00:01:03 -050069 processConfCommandHyperbolicCordinate(string command);
akmhoque53353462014-04-22 08:43:45 -050070
71 int
akmhoqueb6450b12014-04-24 00:01:03 -050072 processConfCommandNdnNeighbor(string command);
akmhoque53353462014-04-22 08:43:45 -050073
74 int
akmhoqueb6450b12014-04-24 00:01:03 -050075 processConfCommandNdnName(string command);
akmhoque53353462014-04-22 08:43:45 -050076
77 int
akmhoqueb6450b12014-04-24 00:01:03 -050078 processConfCommandLinkCost(string command);
akmhoque53353462014-04-22 08:43:45 -050079
80
81private:
82 string m_confFileName;
akmhoqueb6450b12014-04-24 00:01:03 -050083 Nlsr& m_nlsr;
akmhoque53353462014-04-22 08:43:45 -050084};
85
86} //namespace nlsr
87#endif //CONF_PROCESSOR_HPP