NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::nfd::ControlCommand Class Reference

base class of NFD ControlCommand More...

#include <nfd-control-command.hpp>

Inheritance diagram for ndn::nfd::ControlCommand:
Collaboration diagram for ndn::nfd::ControlCommand:

Classes

class  ArgumentError
 represents an error in ControlParameters More...
 
class  FieldValidator
 

Public Member Functions

virtual void validateRequest (const ControlParameters &parameters) const
 validate request parameters More...
 
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...
 
virtual void applyDefaultsToResponse (ControlParameters &parameters) const
 apply default values to missing fields in response More...
 
Name getRequestName (const Name &commandPrefix, const ControlParameters &parameters) const
 construct the Name for a request Interest More...
 

Protected Member Functions

 ControlCommand (const std::string &module, const std::string &verb)
 

Protected Attributes

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

Detailed Description

Constructor & Destructor Documentation

ndn::nfd::ControlCommand::ControlCommand ( const std::string &  module,
const std::string &  verb 
)
protected

Member Function Documentation

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

apply default values to missing fields in response

Definition at line 52 of file nfd-control-command.cpp.

Referenced by ndn::nfd::ControlCommand::ArgumentError::ArgumentError().

Name ndn::nfd::ControlCommand::getRequestName ( const Name commandPrefix,
const ControlParameters parameters 
) const

construct the Name for a request Interest

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 57 of file nfd-control-command.cpp.

References ndn::Name::append(), validateRequest(), and ndn::nfd::ControlParameters::wireEncode().

Referenced by ndn::nfd::ControlCommand::ArgumentError::ArgumentError().

Member Data Documentation


The documentation for this class was generated from the following files: