|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
22 #ifndef NDN_MGMT_NFD_CONTROL_COMMAND_HPP
23 #define NDN_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_MGMT_NFD_CONTROL_COMMAND_HPP
represents a fib/remove-nexthop command
represents a strategy-choice/set command
represents a strategy-choice/set command
represents a cs/erase command
represents a rib/register command
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
virtual void applyDefaultsToResponse(ControlParameters ¶meters) const
apply default values to missing fields in response
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
represents a faces/destroy command
FibRemoveNextHopCommand()
Name getRequestName(const Name &commandPrefix, const ControlParameters ¶meters) const
construct the Name for a request Interest
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
represents an error in ControlParameters
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
Represents an absolute name.
represents a fib/add-nexthop command
Copyright (c) 2011-2015 Regents of the University of California.
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
virtual ~ControlCommand()
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
represents a faces/create command
represents a rib/unregister 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 faces/update command
ArgumentError(const std::string &what)
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateResponse(const ControlParameters ¶meters) const override
represents parameters in a ControlCommand request or response
FieldValidator & required(ControlParameterField field)
declare a required field
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
Represents a name component.
base class of NFD ControlCommand
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
FieldValidator & optional(ControlParameterField field)
declare an optional field
FieldValidator m_responseValidator
FieldValidator for response ControlParameters.
StrategyChoiceUnsetCommand()
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
represents a cs/config command
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
ControlCommand(const std::string &module, const std::string &verb)
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
StrategyChoiceSetCommand()
Copyright (c) 2011-2015 Regents of the University of California.