22 #ifndef NLSR_UPDATE_COMMAND_PROCESSOR_HPP
23 #define NLSR_UPDATE_COMMAND_PROCESSOR_HPP
28 #include <ndn-cxx/mgmt/dispatcher.hpp>
29 #include <ndn-cxx/mgmt/nfd/control-parameters.hpp>
31 #include <boost/noncopyable.hpp>
41 class Error :
public std::runtime_error
44 using std::runtime_error::runtime_error;
59 const ndn::mgmt::CommandContinuation& done);
66 const ndn::mgmt::CommandContinuation& done);
71 virtual std::optional<bool>
80 virtual std::optional<bool>
NamePrefixList & m_namePrefixList
ndn::mgmt::Dispatcher & m_dispatcher
virtual std::optional< bool > afterWithdraw(const ndn::Name &prefix)
Save an advertised prefix to the nlsr configuration file.
void advertiseAndInsertPrefix(const ndn::mgmt::ControlParametersBase ¶meters, const ndn::mgmt::CommandContinuation &done)
Add desired name prefix to the advertised name prefix list or insert a prefix into the FIB if paramet...
virtual std::optional< bool > afterAdvertise(const ndn::Name &prefix)
Save an advertised prefix to the nlsr configuration file.
virtual ~CommandProcessor()=0
void withdrawAndRemovePrefix(const ndn::mgmt::ControlParametersBase ¶meters, const ndn::mgmt::CommandContinuation &done)
Remove desired name prefix from the advertised name prefix list or remove a prefix from the FIB if pa...
CommandProcessor(ndn::mgmt::Dispatcher &m_dispatcher, NamePrefixList &m_namePrefixList, Lsdb &lsdb)