22 #ifndef NDN_MGMT_NFD_FACE_QUERY_FILTER_HPP 23 #define NDN_MGMT_NFD_FACE_QUERY_FILTER_HPP 42 using tlv::Error::Error;
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 LinkType getLinkType() const
bool hasFaceScope() const
Copyright (c) 2011-2015 Regents of the University of California.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
FaceQueryFilter & unsetLocalUri()
const std::string & getLocalUri() const
FaceScope getFaceScope() const
Represents a TLV element of NDN packet format.
const std::string & getRemoteUri() const
bool hasRemoteUri() const
FaceQueryFilter & unsetFaceScope()
FaceQueryFilter & setLocalUri(const std::string &localUri)
bool hasUriScheme() const
Copyright (c) 2011-2015 Regents of the University of California.
uint64_t getFaceId() const
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
const Block & wireEncode() const
encode FaceQueryFilter
FaceQueryFilter & setFaceScope(FaceScope faceScope)
FaceQueryFilter & unsetFaceId()
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
FaceQueryFilter & setUriScheme(const std::string &uriScheme)
FaceQueryFilter & unsetFacePersistency()
represents Face Query Filter
FaceQueryFilter & unsetUriScheme()
FaceQueryFilter & unsetRemoteUri()
FaceQueryFilter & setRemoteUri(const std::string &remoteUri)
FaceQueryFilter & setFaceId(uint64_t faceId)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
const std::string & getUriScheme() const
FaceQueryFilter & setLinkType(LinkType linkType)
FaceQueryFilter & setFacePersistency(FacePersistency facePersistency)
FacePersistency getFacePersistency() const
bool hasFacePersistency() const
void wireDecode(const Block &wire)
decode FaceQueryFilter
represents an error in TLV encoding or decoding
FaceQueryFilter & unsetLinkType()