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> 62 typedef boost::property_tree::ptree ConfigSection;
75 load(std::istream& input);
80 processSection(
const std::string& sectionName,
const ConfigSection& section);
85 processConfSectionGeneral(
const ConfigSection& section);
95 processConfSectionNeighbors(
const ConfigSection& section);
100 processConfSectionHyperbolic(
const ConfigSection& section);
105 processConfSectionFib(
const ConfigSection& section);
110 processConfSectionAdvertising(
const ConfigSection& section);
119 processConfSectionSecurity(
const ConfigSection& section);
123 std::string m_confFileName;
127 boost::asio::io_service m_io;
131 #endif // NLSR_CONF_FILE_PROCESSOR_HPP A class to house all the configuration parameters for NLSR.
Copyright (c) 2014-2018, 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.
ConfFileProcessor(ConfParameter &confParam)
bool processConfFile()
Load and parse the configuration file, then populate NLSR.