80 bool isPresent = presentFields[i];
87 else if (isPresent && !m_optional[i]) {
110 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must not be zero"));
128 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must not be zero"));
156 BOOST_THROW_EXCEPTION(
ArgumentError(
"LocalControlFeature is invalid"));
206 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must not be zero"));
235 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must not be zero"));
262 BOOST_THROW_EXCEPTION(
ArgumentError(
"Name must not be ndn:/"));
314 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must not be zero"));
348 BOOST_THROW_EXCEPTION(
ArgumentError(
"FaceId must not be zero"));
virtual void applyDefaultsToResponse(ControlParameters ¶meters) const
apply default values to missing fields in response
ControlParameters & setFaceId(uint64_t faceId)
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
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 ...
represents parameters in a ControlCommand request or response
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
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
ControlParameters & setFlags(uint64_t flags)
StrategyChoiceUnsetCommand()
FieldValidator m_responseValidator
FieldValidator for response ControlParameters.
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
ControlCommand(const std::string &module, const std::string &verb)
StrategyChoiceSetCommand()
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
const std::vector< bool > & getPresentFields() const
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
size_t wireEncode(EncodingImpl< TAG > &encoder) const
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
FaceLocalControlCommand(const std::string &verb)
FaceDisableLocalControlCommand()
FaceEnableLocalControlCommand()
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
Copyright (c) 2011-2015 Regents of the University of California.
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
const Name & getName() const
Name getRequestName(const Name &commandPrefix, const ControlParameters ¶meters) const
construct the Name for a request Interest
FieldValidator & required(ControlParameterField field)
declare a required field
size_t size() const
Get the number of components.
Name abstraction to represent an absolute name.
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
LocalControlFeature getLocalControlFeature() const
uint64_t getFaceId() const
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
ControlParameters & setCost(uint64_t cost)
Base class for faces/[*]-local-control commands.
Name & append(const uint8_t *value, size_t valueLength)
Append a new component, copying from value of length valueLength.
ControlParameters & setOrigin(uint64_t origin)
FibRemoveNextHopCommand()
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
represents an error in ControlParameters
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
FieldValidator & optional(ControlParameterField field)
declare an optional field