21 #ifndef NLSR_CONF_FILE_PROCESSOR_HPP 22 #define NLSR_CONF_FILE_PROCESSOR_HPP 27 #include <boost/algorithm/string.hpp> 28 #include <boost/property_tree/info_parser.hpp> 29 #include <boost/filesystem.hpp> 50 : m_confFileName(cfile)
66 typedef boost::property_tree::ptree ConfigSection;
79 load(std::istream& input);
84 processSection(
const std::string& sectionName,
const ConfigSection& section);
89 processConfSectionGeneral(
const ConfigSection& section);
99 processConfSectionNeighbors(
const ConfigSection& section);
104 processConfSectionHyperbolic(
const ConfigSection& section);
109 processConfSectionFib(
const ConfigSection& section);
114 processConfSectionAdvertising(
const ConfigSection& section);
123 processConfSectionSecurity(
const ConfigSection& section);
127 std::string m_confFileName;
133 #endif // NLSR_CONF_FILE_PROCESSOR_HPP
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California.
A class containing methods to parse an NLSR configuration file.
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
bool processConfFile()
Load and parse the configuration file, then populate NLSR.
ConfFileProcessor(Nlsr &nlsr, const std::string &cfile)