22 #ifndef NDN_CXX_MGMT_NFD_FACE_TRAITS_HPP
23 #define NDN_CXX_MGMT_NFD_FACE_TRAITS_HPP
57 return static_cast<C&
>(*this);
71 return static_cast<C&
>(*this);
85 return static_cast<C&
>(*this);
99 return static_cast<C&
>(*this);
113 return static_cast<C&
>(*this);
127 return static_cast<C&
>(*this);
141 return static_cast<C&
>(*this);
148 NDN_THROW(std::out_of_range(
"bit must be within range [0, 64)"));
157 NDN_THROW(std::out_of_range(
"bit must be within range [0, 64)"));
169 return static_cast<C&
>(*this);
Represents a TLV element of the NDN packet format.
void reset() noexcept
Reset the Block to a default-constructed state.
provides getters and setters for face information fields
C & setFaceScope(FaceScope faceScope)
C & setRemoteUri(const std::string &remoteUri)
C & setFaceId(uint64_t faceId)
uint64_t getFlags() const
FacePersistency m_facePersistency
const std::string & getLocalUri() const
const std::string & getRemoteUri() const
C & setFlagBit(size_t bit, bool value)
FacePersistency getFacePersistency() const
C & setFacePersistency(FacePersistency facePersistency)
bool getFlagBit(size_t bit) const
C & setLocalUri(const std::string &localUri)
C & setFlags(uint64_t flags)
uint64_t getFaceId() const
FaceScope getFaceScope() const
C & setLinkType(LinkType linkType)
LinkType getLinkType() const
represents an error in TLV encoding or decoding
Error(const char *expectedType, uint32_t actualType)
@ FACE_PERSISTENCY_PERSISTENT
face is persistent
@ FACE_SCOPE_NON_LOCAL
face is non-local
@ LINK_TYPE_POINT_TO_POINT
link is point-to-point
const uint64_t INVALID_FACE_ID