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" 53 "LocalControlFeature",
93 template<encoding::Tag TAG>
174 BOOST_ASSERT(this->
hasUri());
205 return m_localControlFeature;
212 m_localControlFeature = localControlFeature;
332 m_strategy = strategy;
351 const time::milliseconds&
355 return m_expirationPeriod;
362 m_expirationPeriod = expirationPeriod;
375 const std::vector<bool>&
382 std::vector<bool> m_hasFields;
392 time::milliseconds m_expirationPeriod;
395 mutable Block m_wire;
404 #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
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()
bool hasExpirationPeriod() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
void reset()
Reset wire buffer of the element.
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)
const time::milliseconds & getExpirationPeriod() const
ControlParameters & setOrigin(uint64_t origin)
ControlParameters & setName(const Name &name)
ControlParameters & unsetName()
ControlParameters & unsetUri()
LocalControlFeature getLocalControlFeature() const
const Name & getStrategy() const
represents an error in TLV encoding or decoding
ControlParameters & unsetLocalControlFeature()