63 Name name = commandPrefix;
81 bool isPresent = presentFields[i];
87 else if (isPresent && !m_optional[i]) {
94 BOOST_THROW_EXCEPTION(
ArgumentError(
"Flags must be accompanied by Mask"));
134 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
170 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
188 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
228 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
257 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
296 BOOST_THROW_EXCEPTION(
ArgumentError(
"Name must not be ndn:/"));
348 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
382 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
virtual void applyDefaultsToResponse(ControlParameters ¶meters) const
apply default values to missing fields in response
ControlParameters & setFaceId(uint64_t faceId)
Copyright (c) 2013-2017 Regents of the University of California.
void validate(const ControlParameters ¶meters) const
verify that all required fields are present, and all present fields are either required or optional ...
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
represents parameters in a ControlCommand request or response
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
base class of NFD ControlCommand
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
ControlParameters & setFlags(uint64_t flags)
StrategyChoiceUnsetCommand()
FieldValidator m_responseValidator
FieldValidator for response ControlParameters.
Name & append(const Component &component)
Append a component.
ControlCommand(const std::string &module, const std::string &verb)
StrategyChoiceSetCommand()
virtual ~ControlCommand()
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
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
const std::vector< bool > & getPresentFields() const
size_t wireEncode(EncodingImpl< TAG > &encoder) const
bool hasFacePersistency() const
const Name & getName() const
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
FieldValidator & required(ControlParameterField field)
declare a required field
size_t size() const
Get number of components.
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
Represents an absolute name.
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]
void validateResponse(const ControlParameters ¶meters) const override
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
uint64_t getFaceId() const
ControlParameters & setCost(uint64_t cost)
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
ControlParameters & setFacePersistency(FacePersistency persistency)
ControlParameters & setOrigin(RouteOrigin origin)
FibRemoveNextHopCommand()
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
represents an error in ControlParameters
const uint64_t INVALID_FACE_ID
FieldValidator & optional(ControlParameterField field)
declare an optional field