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