81 bool isPresent = presentFields[i];
87 else if (isPresent && !m_optional[i]) {
124 BOOST_THROW_EXCEPTION(
ArgumentError(
"Flags must be accompanied by Mask"));
134 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
166 BOOST_THROW_EXCEPTION(
ArgumentError(
"Flags must be accompanied by Mask"));
176 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
194 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
234 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
263 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
290 BOOST_THROW_EXCEPTION(
ArgumentError(
"Name must not be ndn:/"));
342 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must be valid"));
376 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) 2011-2015 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 validateRequest(const ControlParameters ¶meters) const override
validate request parameters
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
Copyright (c) 2011-2015 Regents of the University of California.
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
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
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