22 #ifndef NDN_MGMT_NFD_FACE_TRAITS_HPP 23 #define NDN_MGMT_NFD_FACE_TRAITS_HPP 25 #include "../../encoding/block.hpp" 26 #include "../../encoding/nfd-constants.hpp" 61 return static_cast<C&
>(*this);
75 return static_cast<C&
>(*this);
89 return static_cast<C&
>(*this);
103 return static_cast<C&
>(*this);
117 return static_cast<C&
>(*this);
131 return static_cast<C&
>(*this);
145 return static_cast<C&
>(*this);
152 BOOST_THROW_EXCEPTION(std::out_of_range(
"bit must be within range [0, 64)"));
161 BOOST_THROW_EXCEPTION(std::out_of_range(
"bit must be within range [0, 64)"));
173 return static_cast<C&
>(*this);
201 #endif // NDN_MGMT_NFD_FACE_TRAITS_HPP LinkType getLinkType() const
Copyright (c) 2013-2017 Regents of the University of California.
uint64_t getFlags() const
FaceScope getFaceScope() const
FacePersistency m_facePersistency
Represents a TLV element of NDN packet format.
C & setFaceId(uint64_t faceId)
bool getFlagBit(size_t bit) const
C & setLocalUri(const std::string &localUri)
C & setRemoteUri(const std::string &remoteUri)
uint64_t getFaceId() const
C & setFaceScope(FaceScope faceScope)
void reset()
Reset wire buffer of the element.
const std::string & getLocalUri() const
const std::string & getRemoteUri() const
FacePersistency getFacePersistency() const
provides getters and setters for face information fields
C & setLinkType(LinkType linkType)
C & setFacePersistency(FacePersistency facePersistency)
C & setFlagBit(size_t bit, bool value)
Error(const std::string &what)
C & setFlags(uint64_t flags)
represents an error in TLV encoding or decoding
const uint64_t INVALID_FACE_ID