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

#include <nfd-control-command.hpp>

Public Member Functions

 FieldValidator ()
 
FieldValidatorrequired (ControlParameterField field)
 declare a required field More...
 
FieldValidatoroptional (ControlParameterField field)
 declare an optional field More...
 
void validate (const ControlParameters &parameters) const
 verify that all required fields are present, and all present fields are either required or optional More...
 

Detailed Description

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

Constructor & Destructor Documentation

§ FieldValidator()

ndn::nfd::ControlCommand::FieldValidator::FieldValidator ( )

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

Member Function Documentation

§ required()

§ optional()

§ validate()

void ndn::nfd::ControlCommand::FieldValidator::validate ( const ControlParameters parameters) const

verify that all required fields are present, and all present fields are either required or optional

Exceptions
ArgumentError

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

References ndn::nfd::CONTROL_PARAMETER_FIELD, ndn::nfd::CONTROL_PARAMETER_UBOUND, and ndn::nfd::ControlParameters::getPresentFields().

Referenced by ndn::nfd::ControlCommand::validateRequest(), and ndn::nfd::ControlCommand::validateResponse().


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