22 #ifndef NDN_MANAGEMENT_NFD_CONTROL_COMMAND_HPP 23 #define NDN_MANAGEMENT_NFD_CONTROL_COMMAND_HPP 45 :
std::invalid_argument(what)
79 ControlCommand(
const std::string& module,
const std::string& verb);
91 m_required[field] =
true;
100 m_optional[field] =
true;
112 std::vector<bool> m_required;
113 std::vector<bool> m_optional;
313 #endif // NDN_MANAGEMENT_NFD_CONTROL_COMMAND_HPP represents a faces/disable-local-control command
void validate(const ControlParameters ¶meters) const
verify that all required fields are present, and all present fields are either required or optional ...
represents a strategy-choice/set command
virtual void applyDefaultsToResponse(ControlParameters ¶meters) const
apply default values to missing fields in response
Copyright (c) 2011-2015 Regents of the University of California.
represents a fib/add-nexthop command
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
represents parameters in a ControlCommand request or response
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
base class of NFD ControlCommand
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
StrategyChoiceUnsetCommand()
FieldValidator m_responseValidator
FieldValidator for response ControlParameters.
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
represents a strategy-choice/set command
represents a fib/remove-nexthop command
ControlCommand(const std::string &module, const std::string &verb)
StrategyChoiceSetCommand()
represents a faces/create command
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
represents a faces/enable-local-control command
FaceLocalControlCommand(const std::string &verb)
FaceDisableLocalControlCommand()
Name getRequestName(const Name &commandPrefix, const ControlParameters ¶meters) const
construct the Name for a request Interest
FaceEnableLocalControlCommand()
Copyright (c) 2011-2015 Regents of the University of California.
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
FieldValidator & required(ControlParameterField field)
declare a required field
Name abstraction to represent an absolute name.
represents a rib/unregister command
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
represents a rib/register command
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
Component holds a read-only name component value.
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
Base class for faces/[*]-local-control commands.
FibRemoveNextHopCommand()
represents a faces/destroy command
represents an error in ControlParameters
ArgumentError(const std::string &what)
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
FieldValidator & optional(ControlParameterField field)
declare an optional field