22 #ifndef NDN_CXX_MGMT_NFD_FACE_TRAITS_HPP
23 #define NDN_CXX_MGMT_NFD_FACE_TRAITS_HPP
56 return static_cast<C&
>(*this);
70 return static_cast<C&
>(*this);
84 return static_cast<C&
>(*this);
98 return static_cast<C&
>(*this);
112 return static_cast<C&
>(*this);
126 return static_cast<C&
>(*this);
140 return static_cast<C&
>(*this);
147 NDN_THROW(std::out_of_range(
"bit must be within range [0, 64)"));
156 NDN_THROW(std::out_of_range(
"bit must be within range [0, 64)"));
168 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
Contains classes and functions related to the NFD Management protocol.
constexpr uint64_t INVALID_FACE_ID