represents parameters in a ControlCommand request or response More...
#include <control-parameters.hpp>
Classes | |
class | Error |
represents parameters in a ControlCommand request or response
This type is copyable because it's an abstraction of a TLV type.
Definition at line 80 of file control-parameters.hpp.
ndn::nfd::ControlParameters::ControlParameters | ( | ) |
Definition at line 36 of file control-parameters.cpp.
Referenced by ndn::nfd::ControlParameters::Error::Error().
|
explicit |
Definition at line 41 of file control-parameters.cpp.
References wireDecode().
size_t ndn::nfd::ControlParameters::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 49 of file control-parameters.cpp.
References ndn::tlv::nfd::ControlParameters, ndn::tlv::nfd::Cost, ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::Flags, hasCost(), hasExpirationPeriod(), hasFaceId(), hasFacePersistency(), hasFlags(), hasLocalControlFeature(), hasMask(), hasName(), hasOrigin(), hasStrategy(), hasUri(), ndn::tlv::nfd::LocalControlFeature, ndn::tlv::nfd::Mask, ndn::tlv::nfd::Origin, ndn::encoding::prependNestedBlock(), ndn::encoding::prependNonNegativeIntegerBlock(), ndn::tlv::nfd::Strategy, ndn::tlv::nfd::Uri, and ndn::Name::wireEncode().
Referenced by nfd::FibManager::FibManager(), ndn::nfd::ControlCommand::getRequestName(), nfd::rib::RibManager::onRibUpdateFailure(), nfd::FaceManager::setConfigFile(), and nfd::StrategyChoiceManager::StrategyChoiceManager().
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 106 of file control-parameters.cpp.
References ndn::Block::hasWire().
Referenced by ndn::nfd::ControlParameters::Error::Error().
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 122 of file control-parameters.cpp.
References ndn::nfd::CONTROL_PARAMETER_COST, ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, ndn::nfd::CONTROL_PARAMETER_FACE_ID, ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, ndn::nfd::CONTROL_PARAMETER_FLAGS, ndn::nfd::CONTROL_PARAMETER_LOCAL_CONTROL_FEATURE, ndn::nfd::CONTROL_PARAMETER_MASK, ndn::nfd::CONTROL_PARAMETER_NAME, ndn::nfd::CONTROL_PARAMETER_ORIGIN, ndn::nfd::CONTROL_PARAMETER_STRATEGY, ndn::nfd::CONTROL_PARAMETER_URI, ndn::tlv::nfd::ControlParameters, ndn::tlv::nfd::Cost, ndn::Block::elements_end(), ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::Block::find(), ndn::tlv::nfd::Flags, hasCost(), hasExpirationPeriod(), hasFaceId(), hasFacePersistency(), hasFlags(), hasLocalControlFeature(), hasMask(), hasName(), hasOrigin(), hasStrategy(), hasUri(), ndn::tlv::nfd::LocalControlFeature, ndn::tlv::nfd::Mask, ndn::tlv::Name, ndn::tlv::nfd::Origin, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::tlv::nfd::Strategy, ndn::Block::type(), ndn::tlv::nfd::Uri, and ndn::Name::wireDecode().
Referenced by ndn::nfd::Controller::Controller(), ControlParameters(), and ndn::nfd::ControlParameters::Error::Error().
|
inline |
Definition at line 110 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
Referenced by getName(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 116 of file control-parameters.hpp.
References hasName().
Referenced by nfd::rib::AutoPrefixPropagator::disable(), nfd::FibManager::FibManager(), nfd::rib::RibManager::onRibUpdateFailure(), ndn::nfd::operator<<(), nfd::StrategyChoiceManager::StrategyChoiceManager(), and ndn::nfd::StrategyChoiceUnsetCommand::validateRequest().
|
inline |
Definition at line 123 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
Referenced by face::Face::Impl::asyncUnregisterPrefix(), nfd::rib::AutoPrefixPropagator::disable(), and face::Face::Impl::registerPrefix().
|
inline |
Definition at line 132 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
|
inline |
Definition at line 140 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
Referenced by ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), getFaceId(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 146 of file control-parameters.hpp.
References hasFaceId().
Referenced by nfd::FibManager::FibManager(), nfd::rib::RibManager::onRibUpdateFailure(), ndn::nfd::operator<<(), nfd::FaceManager::setConfigFile(), ndn::nfd::FaceDestroyCommand::validateRequest(), ndn::nfd::FaceCreateCommand::validateResponse(), ndn::nfd::FaceUpdateCommand::validateResponse(), ndn::nfd::FibAddNextHopCommand::validateResponse(), ndn::nfd::FibRemoveNextHopCommand::validateResponse(), ndn::nfd::RibRegisterCommand::validateResponse(), and ndn::nfd::RibUnregisterCommand::validateResponse().
|
inline |
Definition at line 153 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), ndn::util::DummyClientFace::DummyClientFace(), nfd::FibManager::FibManager(), nfd::rib::AutoPrefixPropagator::loadConfig(), nfd::rib::RibManager::onRibUpdateFailure(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 162 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
|
inline |
Definition at line 170 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
Referenced by getUri(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 176 of file control-parameters.hpp.
References hasUri().
Referenced by ndn::nfd::operator<<(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 183 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
|
inline |
Definition at line 192 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
|
inline |
Definition at line 203 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_CONTROL_FEATURE.
Referenced by getLocalControlFeature(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 212 of file control-parameters.hpp.
References hasLocalControlFeature().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::FaceLocalControlCommand::validateRequest().
|
inline |
Definition at line 222 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_CONTROL_FEATURE.
|
inline |
Definition at line 234 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_CONTROL_FEATURE.
|
inline |
Definition at line 242 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), getOrigin(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 248 of file control-parameters.hpp.
References hasOrigin().
Referenced by nfd::rib::RibManager::onRibUpdateFailure(), and ndn::nfd::operator<<().
|
inline |
Definition at line 255 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), ndn::util::DummyClientFace::DummyClientFace(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 264 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
|
inline |
Definition at line 272 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), getCost(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 278 of file control-parameters.hpp.
References hasCost().
Referenced by nfd::rib::AutoPrefixPropagator::disable(), nfd::FibManager::FibManager(), nfd::rib::RibManager::onRibUpdateFailure(), and ndn::nfd::operator<<().
|
inline |
Definition at line 285 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), nfd::rib::AutoPrefixPropagator::disable(), ndn::util::DummyClientFace::DummyClientFace(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 294 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
Referenced by nfd::rib::AutoPrefixPropagator::disable().
|
inline |
Definition at line 302 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), getFlagBit(), getFlags(), ndn::nfd::operator<<(), setFlagBit(), ndn::nfd::FaceCreateCommand::validateRequest(), ndn::nfd::FaceUpdateCommand::validateRequest(), wireDecode(), and wireEncode().
|
inline |
Definition at line 308 of file control-parameters.hpp.
References hasFlags().
Referenced by getFlagBit(), nfd::rib::RibManager::onRibUpdateFailure(), ndn::nfd::operator<<(), and setFlagBit().
|
inline |
Definition at line 315 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), face::Face::Impl::registerPrefix(), and setFlagBit().
|
inline |
Definition at line 324 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by unsetFlagBit().
|
inline |
Definition at line 332 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by getMask(), hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), unsetFlagBit(), ndn::nfd::FaceCreateCommand::validateRequest(), ndn::nfd::FaceUpdateCommand::validateRequest(), wireDecode(), and wireEncode().
|
inline |
Definition at line 338 of file control-parameters.hpp.
References hasMask().
Referenced by hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 345 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 354 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by unsetFlagBit().
|
inline |
Definition at line 362 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
Referenced by getStrategy(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 368 of file control-parameters.hpp.
References hasStrategy().
Referenced by ndn::nfd::operator<<(), and nfd::StrategyChoiceManager::StrategyChoiceManager().
|
inline |
Definition at line 375 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
Referenced by nfd::StrategyChoiceManager::StrategyChoiceManager().
|
inline |
Definition at line 384 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
|
inline |
Definition at line 392 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
Referenced by getExpirationPeriod(), nfd::rib::RibManager::onRibUpdateFailure(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 398 of file control-parameters.hpp.
References hasExpirationPeriod().
Referenced by nfd::rib::RibManager::onRibUpdateFailure(), and ndn::nfd::operator<<().
|
inline |
Definition at line 405 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
|
inline |
Definition at line 414 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
|
inline |
Definition at line 422 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), getFacePersistency(), ndn::nfd::operator<<(), nfd::FaceManager::setConfigFile(), wireDecode(), and wireEncode().
|
inline |
Definition at line 428 of file control-parameters.hpp.
References hasFacePersistency().
Referenced by ndn::nfd::operator<<(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 435 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 444 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
|
inline |
Definition at line 452 of file control-parameters.hpp.
References getFlagBit(), hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), and unsetFlagBit().
Referenced by ndn::nfd::ControlCommand::FieldValidator::validate().
bool ndn::nfd::ControlParameters::hasFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 205 of file control-parameters.cpp.
References getMask(), and hasMask().
Referenced by getPresentFields(), and nfd::FaceManager::setConfigFile().
bool ndn::nfd::ControlParameters::getFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 219 of file control-parameters.cpp.
References getFlags(), and hasFlags().
Referenced by getPresentFields(), and nfd::FaceManager::setConfigFile().
ControlParameters & ndn::nfd::ControlParameters::setFlagBit | ( | size_t | bit, |
bool | value, | ||
bool | wantMask = true |
||
) |
set a bit in Flags
bit | bit position within range [0, 64) (least significant bit is 0) |
value | new value in Flags |
wantMask | if true, enable the bit in Mask |
Definition at line 233 of file control-parameters.cpp.
References getFlags(), getMask(), hasFlags(), hasMask(), setFlags(), and setMask().
Referenced by getPresentFields(), and nfd::FaceManager::setConfigFile().
ControlParameters & ndn::nfd::ControlParameters::unsetFlagBit | ( | size_t | bit | ) |
disable a bit in Mask
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 258 of file control-parameters.cpp.
References getMask(), hasMask(), setMask(), unsetFlags(), and unsetMask().
Referenced by getPresentFields().