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
virtual void applyDefaultsToResponse(ControlParameters ¶meters) const
apply default values to missing fields in response
represents a strategy-choice/set command
Copyright (c) 2011-2015 Regents of the University of California.
represents a fib/add-nexthop command
represents parameters in a ControlCommand request or response
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
base class of NFD ControlCommand
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
FieldValidator m_responseValidator
FieldValidator for response ControlParameters.
represents a strategy-choice/set command
represents a fib/remove-nexthop command
ControlCommand(const std::string &module, const std::string &verb)
represents a faces/create command
represents a faces/enable-local-control command
Copyright (c) 2011-2015 Regents of the University of California.
Name getRequestName(const Name &commandPrefix, const ControlParameters ¶meters) const
construct the Name for a request Interest
FieldValidator & required(ControlParameterField field)
declare a required field
Name abstraction to represent an absolute name.
represents a rib/unregister command
represents a rib/register command
Component holds a read-only name component value.
Base class for faces/[*]-local-control commands.
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
represents a faces/destroy command
represents an error in ControlParameters
ArgumentError(const std::string &what)
FieldValidator & optional(ControlParameterField field)
declare an optional field