22 #ifndef NDN_CXX_MGMT_NFD_FACE_QUERY_FILTER_HPP
23 #define NDN_CXX_MGMT_NFD_FACE_QUERY_FILTER_HPP
53 template<encoding::Tag TAG>
95 return !m_uriScheme.empty();
114 return !m_remoteUri.empty();
133 return !m_localUri.empty();
152 return !!m_faceScope;
171 return !!m_facePersistency;
178 return *m_facePersistency;
207 optional<uint64_t> m_faceId;
208 std::string m_uriScheme;
209 std::string m_remoteUri;
210 std::string m_localUri;
211 optional<FaceScope> m_faceScope;
212 optional<FacePersistency> m_facePersistency;
213 optional<LinkType> m_linkType;
215 mutable Block m_wire;
Represents a TLV element of the NDN packet format.
represents Face Query Filter
const std::string & getLocalUri() const
const Block & wireEncode() const
encode FaceQueryFilter
FaceQueryFilter & unsetUriScheme()
const std::string & getUriScheme() const
uint64_t getFaceId() const
FaceQueryFilter & unsetRemoteUri()
FaceQueryFilter & unsetFaceScope()
bool hasFacePersistency() const
bool hasRemoteUri() const
FaceQueryFilter & setRemoteUri(const std::string &remoteUri)
FaceQueryFilter & unsetLinkType()
bool hasUriScheme() const
LinkType getLinkType() const
FaceQueryFilter & unsetFaceId()
FaceQueryFilter & unsetFacePersistency()
FaceQueryFilter & setFaceScope(FaceScope faceScope)
FacePersistency getFacePersistency() const
FaceQueryFilter & setFaceId(uint64_t faceId)
FaceQueryFilter & setFacePersistency(FacePersistency facePersistency)
FaceQueryFilter & setLocalUri(const std::string &localUri)
void wireDecode(const Block &wire)
decode FaceQueryFilter
FaceScope getFaceScope() const
FaceQueryFilter & setLinkType(LinkType linkType)
FaceQueryFilter & unsetLocalUri()
bool hasFaceScope() const
FaceQueryFilter & setUriScheme(const std::string &uriScheme)
const std::string & getRemoteUri() const
represents an error in TLV encoding or decoding
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)