#include <nfd-control-command.hpp>
Public Member Functions | |
FieldValidator () | |
FieldValidator & | required (ControlParameterField field) |
declare a required field More... | |
FieldValidator & | optional (ControlParameterField field) |
declare an optional field More... | |
void | validate (const ControlParameters ¶meters) const |
verify that all required fields are present, and all present fields are either required or optional More... | |
Definition at line 81 of file nfd-control-command.hpp.
ndn::nfd::ControlCommand::FieldValidator::FieldValidator | ( | ) |
Definition at line 68 of file nfd-control-command.cpp.
|
inline |
declare a required field
Definition at line 89 of file nfd-control-command.hpp.
Referenced by ndn::nfd::FaceCreateCommand::FaceCreateCommand(), ndn::nfd::FaceDestroyCommand::FaceDestroyCommand(), ndn::nfd::FaceLocalControlCommand::FaceLocalControlCommand(), ndn::nfd::FibAddNextHopCommand::FibAddNextHopCommand(), ndn::nfd::FibRemoveNextHopCommand::FibRemoveNextHopCommand(), ndn::nfd::RibRegisterCommand::RibRegisterCommand(), ndn::nfd::RibUnregisterCommand::RibUnregisterCommand(), ndn::nfd::StrategyChoiceSetCommand::StrategyChoiceSetCommand(), and ndn::nfd::StrategyChoiceUnsetCommand::StrategyChoiceUnsetCommand().
|
inline |
declare an optional field
Definition at line 98 of file nfd-control-command.hpp.
Referenced by ndn::nfd::FaceCreateCommand::FaceCreateCommand(), ndn::nfd::FibAddNextHopCommand::FibAddNextHopCommand(), ndn::nfd::FibRemoveNextHopCommand::FibRemoveNextHopCommand(), ndn::nfd::RibRegisterCommand::RibRegisterCommand(), and ndn::nfd::RibUnregisterCommand::RibUnregisterCommand().
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
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().