#include <ndn-cxx/mgmt/nfd/control-command.hpp>
Public Member Functions | |
FieldValidator () | |
FieldValidator & | optional (ControlParameterField field) |
Declare an optional field. More... | |
FieldValidator & | required (ControlParameterField field) |
Declare a required 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 79 of file control-command.hpp.
ndn::nfd::ControlCommand::FieldValidator::FieldValidator | ( | ) |
Definition at line 68 of file control-command.cpp.
|
inline |
Declare an optional field.
Definition at line 96 of file control-command.hpp.
|
inline |
Declare a required field.
Definition at line 87 of file control-command.hpp.
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 control-command.cpp.