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.
ControlParameters & unsetStrategy()
const Name & getStrategy() const
represents parameters in a ControlCommand request or response
virtual Block wireEncode() const final
uint64_t getOrigin() const
ControlParameters & setFlags(uint64_t flags)
bool hasExpirationPeriod() const
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()
bool hasLocalControlFeature() const
ControlParameters & setStrategy(const Name &strategy)
ControlParameters & setExpirationPeriod(const time::milliseconds &expirationPeriod)
const std::vector< bool > & getPresentFields() const
ControlParameters & setLocalControlFeature(LocalControlFeature localControlFeature)
Copyright (c) 2011-2015 Regents of the University of California.
ControlParameters & unsetExpirationPeriod()
const Name & getName() 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]
base class for a struct that contains ControlCommand parameters
#define NDN_CXX_DECL_FINAL
expands to 'final' if compiler supports this feature, otherwise expands to nothing ...
LocalControlFeature getLocalControlFeature() const
uint64_t getFaceId() const
ControlParameters & setCost(uint64_t cost)
const time::milliseconds & getExpirationPeriod() const
ControlParameters & setOrigin(uint64_t origin)
ControlParameters & setName(const Name &name)
ControlParameters & unsetName()
ControlParameters & unsetUri()
const std::string & getUri() const
represents an error in TLV encoding or decoding
ControlParameters & unsetLocalControlFeature()