All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ndn::nfd::FibAddNextHopCommand Class Reference

represents a fib/add-nexthop command More...

#include <nfd-control-command.hpp>

Inheritance diagram for ndn::nfd::FibAddNextHopCommand:
[legend]
Collaboration diagram for ndn::nfd::FibAddNextHopCommand:
[legend]

Public Member Functions

 FibAddNextHopCommand ()
 
virtual void applyDefaultsToRequest (ControlParameters &parameters) const
 apply default values to missing fields in request More...
 
virtual void validateResponse (const ControlParameters &parameters) const
 validate response parameters More...
 
const NamegetPrefix () const
 
Interest makeCommandInterest (const ControlParameters &parameters, CommandInterestGenerator &commandInterestGenerator) const
 make a Command Interest from parameters More...
 
virtual void validateRequest (const ControlParameters &parameters) const
 validate request parameters More...
 
virtual void applyDefaultsToResponse (ControlParameters &parameters) const
 apply default values to missing fields in response More...
 

Protected Attributes

FieldValidator m_requestValidator
 FieldValidator for request ControlParameters. More...
 
FieldValidator m_responseValidator
 FieldValidator for response ControlParameters. More...
 

Detailed Description

represents a fib/add-nexthop command

See Also
http://redmine.named-data.net/projects/nfd/wiki/FibMgmt#Add-a-nexthop

Definition at line 291 of file nfd-control-command.hpp.

Constructor & Destructor Documentation

ndn::nfd::FibAddNextHopCommand::FibAddNextHopCommand ( )
inline

Definition at line 294 of file nfd-control-command.hpp.

Member Function Documentation

virtual void ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest ( ControlParameters parameters) const
inlinevirtual

apply default values to missing fields in request

Reimplemented from ndn::nfd::ControlCommand.

Definition at line 308 of file nfd-control-command.hpp.

virtual void ndn::nfd::ControlCommand::applyDefaultsToResponse ( ControlParameters parameters) const
inlinevirtualinherited

apply default values to missing fields in response

Definition at line 85 of file nfd-control-command.hpp.

const Name& ndn::nfd::ControlCommand::getPrefix ( ) const
inlineinherited
Returns
Name prefix of this ControlCommand

Definition at line 37 of file nfd-control-command.hpp.

Interest ndn::nfd::ControlCommand::makeCommandInterest ( const ControlParameters parameters,
CommandInterestGenerator commandInterestGenerator 
) const
inlineinherited

make a Command Interest from parameters

Definition at line 45 of file nfd-control-command.hpp.

virtual void ndn::nfd::ControlCommand::validateRequest ( const ControlParameters parameters) const
inlinevirtualinherited

validate request parameters

Exceptions
ArgumentError

Reimplemented in ndn::nfd::StrategyChoiceUnsetCommand, ndn::nfd::FaceLocalControlCommand, and ndn::nfd::FaceDestroyCommand.

Definition at line 61 of file nfd-control-command.hpp.

virtual void ndn::nfd::FibAddNextHopCommand::validateResponse ( const ControlParameters parameters) const
inlinevirtual

validate response parameters

Exceptions
ArgumentError

Reimplemented from ndn::nfd::ControlCommand.

Definition at line 316 of file nfd-control-command.hpp.

Field Documentation

FieldValidator ndn::nfd::ControlCommand::m_requestValidator
protectedinherited

FieldValidator for request ControlParameters.

Constructor of subclass should populate this validator.

Definition at line 155 of file nfd-control-command.hpp.

FieldValidator ndn::nfd::ControlCommand::m_responseValidator
protectedinherited

FieldValidator for response ControlParameters.

Constructor of subclass should populate this validator.

Definition at line 160 of file nfd-control-command.hpp.