All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
nlsr::update::NfdRibCommandProcessor Class Reference

#include <nfd-rib-command-processor.hpp>

+ Inheritance diagram for nlsr::update::NfdRibCommandProcessor:
+ Collaboration diagram for nlsr::update::NfdRibCommandProcessor:

Public Member Functions

 NfdRibCommandProcessor (ndn::mgmt::Dispatcher &dispatcher, NamePrefixList &namePrefixList, Lsdb &lsdb)
 
void advertiseAndInsertPrefix (const ndn::mgmt::ControlParametersBase &parameters, const ndn::mgmt::CommandContinuation &done)
 Add desired name prefix to the advertised name prefix list or insert a prefix into the FIB if parameters is valid. More...
 
virtual std::optional< bool > afterAdvertise (const ndn::Name &prefix)
 Save an advertised prefix to the nlsr configuration file. More...
 
virtual std::optional< bool > afterWithdraw (const ndn::Name &prefix)
 Save an advertised prefix to the nlsr configuration file. More...
 
void withdrawAndRemovePrefix (const ndn::mgmt::ControlParametersBase &parameters, const ndn::mgmt::CommandContinuation &done)
 Remove desired name prefix from the advertised name prefix list or remove a prefix from the FIB if parameters is valid. More...
 

Protected Attributes

ndn::mgmt::Dispatcher & m_dispatcher
 
Lsdbm_lsdb
 
NamePrefixListm_namePrefixList
 

Detailed Description

Definition at line 29 of file nfd-rib-command-processor.hpp.

Constructor & Destructor Documentation

◆ NfdRibCommandProcessor()

nlsr::update::NfdRibCommandProcessor::NfdRibCommandProcessor ( ndn::mgmt::Dispatcher &  dispatcher,
NamePrefixList namePrefixList,
Lsdb lsdb 
)

Definition at line 28 of file nfd-rib-command-processor.cpp.

Member Function Documentation

◆ advertiseAndInsertPrefix()

void nlsr::update::CommandProcessor::advertiseAndInsertPrefix ( const ndn::mgmt::ControlParametersBase &  parameters,
const ndn::mgmt::CommandContinuation &  done 
)
inherited

Add desired name prefix to the advertised name prefix list or insert a prefix into the FIB if parameters is valid.

Definition at line 43 of file command-processor.cpp.

◆ afterAdvertise()

virtual std::optional<bool> nlsr::update::CommandProcessor::afterAdvertise ( const ndn::Name &  prefix)
inlinevirtualinherited

Save an advertised prefix to the nlsr configuration file.

Returns
bool from the overridden function while nullopt here

Reimplemented in nlsr::update::PrefixUpdateProcessor.

Definition at line 72 of file command-processor.hpp.

◆ afterWithdraw()

virtual std::optional<bool> nlsr::update::CommandProcessor::afterWithdraw ( const ndn::Name &  prefix)
inlinevirtualinherited

Save an advertised prefix to the nlsr configuration file.

Returns
bool from the overridden function while nullopt here

Reimplemented in nlsr::update::PrefixUpdateProcessor.

Definition at line 81 of file command-processor.hpp.

◆ withdrawAndRemovePrefix()

void nlsr::update::CommandProcessor::withdrawAndRemovePrefix ( const ndn::mgmt::ControlParametersBase &  parameters,
const ndn::mgmt::CommandContinuation &  done 
)
inherited

Remove desired name prefix from the advertised name prefix list or remove a prefix from the FIB if parameters is valid.

Definition at line 82 of file command-processor.cpp.

Member Data Documentation

◆ m_dispatcher

ndn::mgmt::Dispatcher& nlsr::update::CommandProcessor::m_dispatcher
protectedinherited

Definition at line 87 of file command-processor.hpp.

◆ m_lsdb

Lsdb& nlsr::update::CommandProcessor::m_lsdb
protectedinherited

Definition at line 89 of file command-processor.hpp.

◆ m_namePrefixList

NamePrefixList& nlsr::update::CommandProcessor::m_namePrefixList
protectedinherited

Definition at line 88 of file command-processor.hpp.