22 #ifndef NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
23 #define NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
28 #include <ndn-cxx/security/key-chain.hpp>
30 #include <boost/property_tree/ptree.hpp>
41 ndn::security::ValidatorConfig& validator,
43 Lsdb& lsdb,
const std::string& configFileName);
75 ndn::security::ValidatorConfig&
88 ndn::mgmt::Authorization
92 ndn::security::ValidatorConfig& m_validator;
93 const std::string& m_confFileNameDynamic;
void loadValidator(ConfigSection section, const std::string &filename)
Load the validator's configuration from a section of a configuration file.
std::optional< bool > afterAdvertise(const ndn::Name &prefix) override
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)
bool addOrDeletePrefix(const ndn::Name &prefix, bool addPrefix)
Add or delete an advertise or withdrawn prefix to the nlsr configuration file.
std::optional< bool > afterWithdraw(const ndn::Name &prefix) override
save an advertised prefix to the nlsr configuration file returns bool from the overridden function wh...
ndn::security::ValidatorConfig & getValidator()
bool checkForPrefixInFile(const std::string prefix)
Check if a prefix exists in the nlsr configuration file.
boost::property_tree::ptree ConfigSection
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California,...