22 #ifndef NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP 23 #define NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP 25 #include "../../encoding/nfd-constants.hpp" 26 #include "../../name.hpp" 27 #include "../../util/time.hpp" 28 #include "../control-parameters.hpp" 89 template<encoding::Tag TAG>
169 BOOST_ASSERT(this->
hasUri());
207 m_localUri = localUri;
357 m_strategy = strategy;
380 return m_expirationPeriod;
387 m_expirationPeriod = expirationPeriod;
410 return m_facePersistency;
417 m_facePersistency = persistency;
430 const std::vector<bool>&
469 std::vector<bool> m_hasFields;
474 std::string m_localUri;
484 mutable Block m_wire;
495 #endif // NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
uint64_t getFlags() const
ControlParameters & setFaceId(uint64_t faceId)
void wireDecode(const Block &wire) final
Copyright (c) 2011-2015 Regents of the University of California.
ControlParameters & unsetStrategy()
const std::string & getLocalUri() const
const Name & getStrategy() const
represents parameters in a ControlCommand request or response
boost::posix_time::time_duration milliseconds(long duration)
ControlParameters & setFlags(uint64_t flags)
bool hasExpirationPeriod() const
ControlParameters & unsetFaceId()
ControlParameters & unsetMask()
Represents a TLV element of NDN 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)
ControlParameters & unsetFlagBit(size_t bit)
disable a bit in Mask
const std::vector< bool > & getPresentFields() const
RouteOrigin getOrigin() const
Block wireEncode() const final
Copyright (c) 2011-2015 Regents of the University of California.
bool hasFacePersistency() const
ControlParameters & unsetExpirationPeriod()
const Name & getName() const
ControlParameters & unsetFacePersistency()
ControlParameters & unsetLocalUri()
bool getFlagBit(size_t bit) const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Represents an absolute name.
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]
FacePersistency getFacePersistency() const
base class for a struct that contains ControlCommand parameters
uint64_t getFaceId() const
ControlParameters & setCost(uint64_t cost)
const time::milliseconds & getExpirationPeriod() const
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
ControlParameters & setName(const Name &name)
ControlParameters & setFacePersistency(FacePersistency persistency)
ControlParameters & setOrigin(RouteOrigin origin)
bool hasFlagBit(size_t bit) const
ControlParameters & unsetName()
ControlParameters & unsetUri()
ControlParameters & setMask(uint64_t mask)
ControlParameters & setFlagBit(size_t bit, bool value, bool wantMask=true)
set a bit in Flags
const std::string & getUri() const
represents an error in TLV encoding or decoding
ControlParameters & setLocalUri(const std::string &localUri)