22 #ifndef NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP 23 #define NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP 27 #include <ndn-cxx/util/io.hpp> 28 #include <ndn-cxx/security/key-chain.hpp> 29 #include <ndn-cxx/util/io.hpp> 30 #include <boost/property_tree/ptree.hpp> 31 #include <boost/property_tree/info_parser.hpp> 42 ndn::security::ValidatorConfig& validator,
44 Lsdb& lsdb,
const std::string& configFileName);
58 loadValidator(ConfigSection section,
const std::string& filename);
76 ndn::security::ValidatorConfig&
89 ndn::mgmt::Authorization
93 ndn::security::ValidatorConfig& m_validator;
94 const std::string& m_confFileNameDynamic;
100 #endif // NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP void loadValidator(ConfigSection section, const std::string &filename)
Load the validator's configuration from a section of a configuration file.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
ndn::optional< bool > afterAdvertise(const ndn::Name &prefix)
save an advertised prefix to the nlsr configuration file returns bool from the overridden function wh...
PrefixUpdateProcessor(ndn::mgmt::Dispatcher &dispatcher, ndn::security::ValidatorConfig &validator, NamePrefixList &namePrefixList, Lsdb &lsdb, const std::string &configFileName)
ndn::optional< bool > afterWithdraw(const ndn::Name &prefix)
save an advertised prefix to the nlsr configuration file returns bool from the overridden function wh...
ndn::security::ValidatorConfig & getValidator()
bool addOrDeletePrefix(const ndn::Name &prefix, bool addPrefix)
Add or delete an advertise or withdrawn prefix to the nlsr configuration file.
Copyright (c) 2014-2019, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
bool checkForPrefixInFile(const std::string prefix)
Check if a prefix exists in the nlsr configuration file.
boost::property_tree::ptree ConfigSection