22 #ifndef NDN_MANAGEMENT_NFD_CONTROL_PARAMETERS_HPP 23 #define NDN_MANAGEMENT_NFD_CONTROL_PARAMETERS_HPP 25 #include "../encoding/nfd-constants.hpp" 26 #include "../name.hpp" 27 #include "../util/time.hpp" 28 #include "../mgmt/control-parameters.hpp" 54 "LocalControlFeature",
95 template<encoding::Tag TAG>
176 BOOST_ASSERT(this->
hasUri());
207 return m_localControlFeature;
214 m_localControlFeature = localControlFeature;
334 m_strategy = strategy;
353 const time::milliseconds&
357 return m_expirationPeriod;
364 m_expirationPeriod = expirationPeriod;
387 return m_facePersistency;
394 m_facePersistency = persistency;
407 const std::vector<bool>&
414 std::vector<bool> m_hasFields;
424 time::milliseconds m_expirationPeriod;
428 mutable Block m_wire;
437 #endif // NDN_MANAGEMENT_NFD_CONTROL_PARAMETERS_HPP
uint64_t getFlags() const
ControlParameters & setFaceId(uint64_t faceId)
virtual void wireDecode(const Block &wire) final
Copyright (c) 2011-2015 Regents of the University of California.
bool hasLocalControlFeature() const
ControlParameters & unsetStrategy()
represents parameters in a ControlCommand request or response
ControlParameters & setFlags(uint64_t flags)
ControlParameters & unsetFaceId()
Class representing a wire element of NDN-TLV packet format.
ControlParameters & unsetCost()
Error(const std::string &what)
ControlParameters & unsetFlags()
ControlParameters & setUri(const std::string &uri)
ControlParameters & unsetOrigin()
ControlParameters & setStrategy(const Name &strategy)
ControlParameters & setExpirationPeriod(const time::milliseconds &expirationPeriod)
uint64_t getOrigin() const
FacePersistency getFacePersistency() const
ControlParameters & setLocalControlFeature(LocalControlFeature localControlFeature)
const Name & getName() const
virtual Block wireEncode() const final
Copyright (c) 2011-2015 Regents of the University of California.
ControlParameters & unsetExpirationPeriod()
ControlParameters & unsetFacePersistency()
bool hasExpirationPeriod() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Name abstraction to represent an absolute name.
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]
const std::vector< bool > & getPresentFields() const
uint64_t getFaceId() const
base class for a struct that contains ControlCommand parameters
const std::string & getUri() const
#define NDN_CXX_DECL_FINAL
expands to 'final' if compiler supports this feature, otherwise expands to nothing ...
ControlParameters & setCost(uint64_t cost)
bool hasFacePersistency() const
const time::milliseconds & getExpirationPeriod() const
ControlParameters & setOrigin(uint64_t origin)
ControlParameters & setName(const Name &name)
ControlParameters & setFacePersistency(FacePersistency persistency)
ControlParameters & unsetName()
ControlParameters & unsetUri()
LocalControlFeature getLocalControlFeature() const
const Name & getStrategy() const
represents an error in TLV encoding or decoding
ControlParameters & unsetLocalControlFeature()