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);
72 virtual std::tuple<bool, std::string>
82 virtual std::tuple<bool, std::string>
94 const uint64_t m_defaultResponseFaceId = 1;
NamePrefixList & m_namePrefixList
ndn::mgmt::Dispatcher & m_dispatcher
virtual std::tuple< bool, std::string > afterWithdraw(const ndn::Name &prefix)
Processing after withdraw command delegated to subclass. This is always treated as successful if not ...
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 ~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...
virtual std::tuple< bool, std::string > afterAdvertise(const ndn::Name &prefix, uint64_t cost)
Processing after advertise command delegated to subclass. This is always treated as successful if not...