22 #ifndef NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
23 #define NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
27 #include <ndn-cxx/security/key-chain.hpp>
29 #include <boost/property_tree/ptree.hpp>
39 ndn::security::ValidatorConfig& validator,
41 Lsdb& lsdb,
const std::string& configFileName);
73 ndn::security::ValidatorConfig&
86 ndn::mgmt::Authorization
90 ndn::security::ValidatorConfig& m_validator;
91 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.
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.
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