63 const auto& paramBlock = parameters.
wireEncode();
64 return Name(commandPrefix)
67 .append(paramBlock.begin(), paramBlock.end());
82 bool isPresent = presentFields[i];
88 else if (isPresent && !m_optional[i]) {
Represents an absolute name.
size_t size() const
Returns the number of components.
represents an error in ControlParameters
FieldValidator & required(ControlParameterField field)
declare a required field
FieldValidator & optional(ControlParameterField field)
declare an optional field
void validate(const ControlParameters ¶meters) const
verify that all required fields are present, and all present fields are either required or optional
base class of NFD ControlCommand
ControlCommand(const std::string &module, const std::string &verb)
Name getRequestName(const Name &commandPrefix, const ControlParameters ¶meters) const
construct the Name for a request Interest
virtual void validateResponse(const ControlParameters ¶meters) const
validate response parameters
virtual void applyDefaultsToRequest(ControlParameters ¶meters) const
apply default values to missing fields in request
virtual void validateRequest(const ControlParameters ¶meters) const
validate request parameters
virtual void applyDefaultsToResponse(ControlParameters ¶meters) const
apply default values to missing fields in response
FieldValidator m_responseValidator
FieldValidator for response ControlParameters.
FieldValidator m_requestValidator
FieldValidator for request ControlParameters.
virtual ~ControlCommand()
represents parameters in a ControlCommand request or response
ControlParameters & setOrigin(RouteOrigin origin)
ControlParameters & setCost(uint64_t cost)
uint64_t getFaceId() const
const std::vector< bool > & getPresentFields() const
uint64_t getCapacity() const
ControlParameters & setFacePersistency(FacePersistency persistency)
bool hasFacePersistency() const
ControlParameters & setFlags(uint64_t flags)
uint64_t getCount() const
size_t wireEncode(EncodingImpl< TAG > &encoder) const
const Name & getName() const
ControlParameters & setFaceId(uint64_t faceId)
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 applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateResponse(const ControlParameters ¶meters) const override
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateResponse(const ControlParameters ¶meters) const override
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
FibRemoveNextHopCommand()
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
void applyDefaultsToRequest(ControlParameters ¶meters) const override
apply default values to missing fields in request
StrategyChoiceSetCommand()
void validateRequest(const ControlParameters ¶meters) const override
validate request parameters
StrategyChoiceUnsetCommand()
void validateResponse(const ControlParameters ¶meters) const override
validate response parameters
@ FACE_PERSISTENCY_PERSISTENT
face is persistent
@ ROUTE_FLAG_CHILD_INHERIT
@ CONTROL_PARAMETER_STRATEGY
@ CONTROL_PARAMETER_FACE_PERSISTENCY
@ CONTROL_PARAMETER_UBOUND
@ CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD
@ CONTROL_PARAMETER_LOCAL_URI
@ CONTROL_PARAMETER_CAPACITY
@ CONTROL_PARAMETER_EXPIRATION_PERIOD
@ CONTROL_PARAMETER_FLAGS
@ CONTROL_PARAMETER_FACE_ID
@ CONTROL_PARAMETER_COUNT
@ CONTROL_PARAMETER_ORIGIN
@ CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL
const uint64_t INVALID_FACE_ID
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]