22 #ifndef NDN_CXX_MGMT_NFD_CONTROL_COMMAND_HPP 23 #define NDN_CXX_MGMT_NFD_CONTROL_COMMAND_HPP 45 :
std::invalid_argument(what)
82 ControlCommand(
const std::string& module,
const std::string& verb);
94 m_required[field] =
true;
103 m_optional[field] =
true;
115 std::vector<bool> m_required;
116 std::vector<bool> m_optional;
329 #endif // NDN_CXX_MGMT_NFD_CONTROL_COMMAND_HPP 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
represents parameters in a ControlCommand request or response
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
represents a cs/config command
base class of NFD ControlCommand
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)
virtual ~ControlCommand()
represents a faces/create command
Name getRequestName(const Name &commandPrefix, const ControlParameters ¶meters) const
construct the Name for a request Interest
Copyright (c) 2011-2015 Regents of the University of California.
FieldValidator & required(ControlParameterField field)
declare a required field
Represents an absolute name.
bool validate(server *, websocketpp::connection_hdl)
represents a rib/unregister command
represents a cs/erase command
represents a faces/update command
represents a rib/register command
Represents a name component.
represents a faces/destroy command
represents an error in ControlParameters
ArgumentError(const std::string &what)
FieldValidator & optional(ControlParameterField field)
declare an optional field