ndn::nfd::FaceEventNotification Class Reference

Represents a Face status change notification. More...

#include <ndn-cxx/mgmt/nfd/face-event-notification.hpp>

+ Inheritance diagram for ndn::nfd::FaceEventNotification:
+ Collaboration diagram for ndn::nfd::FaceEventNotification:

Public Member Functions

 FaceEventNotification ()
 
 FaceEventNotification (const Block &block)
 
uint64_t getFaceId () const
 
FacePersistency getFacePersistency () const
 
FaceScope getFaceScope () const
 
bool getFlagBit (size_t bit) const
 
uint64_t getFlags () const
 
FaceEventKind getKind () const
 
LinkType getLinkType () const
 
const std::string & getLocalUri () const
 
const std::string & getRemoteUri () const
 
FaceEventNotificationsetFaceId (uint64_t faceId)
 
FaceEventNotificationsetFacePersistency (FacePersistency facePersistency)
 
FaceEventNotificationsetFaceScope (FaceScope faceScope)
 
FaceEventNotificationsetFlagBit (size_t bit, bool value)
 
FaceEventNotificationsetFlags (uint64_t flags)
 
FaceEventNotificationsetKind (FaceEventKind kind)
 
FaceEventNotificationsetLinkType (LinkType linkType)
 
FaceEventNotificationsetLocalUri (const std::string &localUri)
 
FaceEventNotificationsetRemoteUri (const std::string &remoteUri)
 
void wireDecode (const Block &wire)
 Decode FaceEventNotification. More...
 
const BlockwireEncode () const
 Encode FaceEventNotification. More...
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 Prepend FaceEventNotification to the encoder. More...
 

Protected Attributes

uint64_t m_faceId
 
FacePersistency m_facePersistency
 
FaceScope m_faceScope
 
uint64_t m_flags
 
LinkType m_linkType
 
std::string m_localUri
 
std::string m_remoteUri
 
Block m_wire
 

Detailed Description

Constructor & Destructor Documentation

◆ FaceEventNotification() [1/2]

ndn::nfd::FaceEventNotification::FaceEventNotification ( )

Definition at line 34 of file face-event-notification.cpp.

◆ FaceEventNotification() [2/2]

ndn::nfd::FaceEventNotification::FaceEventNotification ( const Block block)
explicit

Definition at line 39 of file face-event-notification.cpp.

Member Function Documentation

◆ getFaceId()

uint64_t ndn::nfd::FaceTraits< FaceEventNotification >::getFaceId ( ) const
inlineinherited

Definition at line 47 of file face-traits.hpp.

◆ getFacePersistency()

FacePersistency ndn::nfd::FaceTraits< FaceEventNotification >::getFacePersistency ( ) const
inlineinherited

Definition at line 103 of file face-traits.hpp.

◆ getFaceScope()

FaceScope ndn::nfd::FaceTraits< FaceEventNotification >::getFaceScope ( ) const
inlineinherited

Definition at line 89 of file face-traits.hpp.

◆ getFlagBit()

bool ndn::nfd::FaceTraits< FaceEventNotification >::getFlagBit ( size_t  bit) const
inlineinherited

Definition at line 145 of file face-traits.hpp.

◆ getFlags()

uint64_t ndn::nfd::FaceTraits< FaceEventNotification >::getFlags ( ) const
inlineinherited

Definition at line 131 of file face-traits.hpp.

◆ getKind()

FaceEventKind ndn::nfd::FaceEventNotification::getKind ( ) const
inline

Definition at line 61 of file face-event-notification.hpp.

◆ getLinkType()

LinkType ndn::nfd::FaceTraits< FaceEventNotification >::getLinkType ( ) const
inlineinherited

Definition at line 117 of file face-traits.hpp.

◆ getLocalUri()

const std::string& ndn::nfd::FaceTraits< FaceEventNotification >::getLocalUri ( ) const
inlineinherited

Definition at line 75 of file face-traits.hpp.

◆ getRemoteUri()

const std::string& ndn::nfd::FaceTraits< FaceEventNotification >::getRemoteUri ( ) const
inlineinherited

Definition at line 61 of file face-traits.hpp.

◆ setFaceId()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setFaceId ( uint64_t  faceId)
inlineinherited

Definition at line 53 of file face-traits.hpp.

◆ setFacePersistency()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setFacePersistency ( FacePersistency  facePersistency)
inlineinherited

Definition at line 109 of file face-traits.hpp.

◆ setFaceScope()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setFaceScope ( FaceScope  faceScope)
inlineinherited

Definition at line 95 of file face-traits.hpp.

◆ setFlagBit()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setFlagBit ( size_t  bit,
bool  value 
)
inlineinherited

Definition at line 154 of file face-traits.hpp.

◆ setFlags()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setFlags ( uint64_t  flags)
inlineinherited

Definition at line 137 of file face-traits.hpp.

◆ setKind()

FaceEventNotification & ndn::nfd::FaceEventNotification::setKind ( FaceEventKind  kind)

Definition at line 159 of file face-event-notification.cpp.

◆ setLinkType()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setLinkType ( LinkType  linkType)
inlineinherited

Definition at line 123 of file face-traits.hpp.

◆ setLocalUri()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setLocalUri ( const std::string &  localUri)
inlineinherited

Definition at line 81 of file face-traits.hpp.

◆ setRemoteUri()

FaceEventNotification & ndn::nfd::FaceTraits< FaceEventNotification >::setRemoteUri ( const std::string &  remoteUri)
inlineinherited

Definition at line 67 of file face-traits.hpp.

◆ wireDecode()

void ndn::nfd::FaceEventNotification::wireDecode ( const Block wire)

Decode FaceEventNotification.

Definition at line 83 of file face-event-notification.cpp.

◆ wireEncode() [1/2]

const Block & ndn::nfd::FaceEventNotification::wireEncode ( ) const

Encode FaceEventNotification.

Definition at line 67 of file face-event-notification.cpp.

◆ wireEncode() [2/2]

template<encoding::Tag TAG>
size_t ndn::nfd::FaceEventNotification::wireEncode ( EncodingImpl< TAG > &  encoder) const

Prepend FaceEventNotification to the encoder.

Definition at line 46 of file face-event-notification.cpp.

Member Data Documentation

◆ m_faceId

uint64_t ndn::nfd::FaceTraits< FaceEventNotification >::m_faceId
protectedinherited

Definition at line 183 of file face-traits.hpp.

◆ m_facePersistency

FacePersistency ndn::nfd::FaceTraits< FaceEventNotification >::m_facePersistency
protectedinherited

Definition at line 187 of file face-traits.hpp.

◆ m_faceScope

FaceScope ndn::nfd::FaceTraits< FaceEventNotification >::m_faceScope
protectedinherited

Definition at line 186 of file face-traits.hpp.

◆ m_flags

uint64_t ndn::nfd::FaceTraits< FaceEventNotification >::m_flags
protectedinherited

Definition at line 189 of file face-traits.hpp.

◆ m_linkType

LinkType ndn::nfd::FaceTraits< FaceEventNotification >::m_linkType
protectedinherited

Definition at line 188 of file face-traits.hpp.

◆ m_localUri

std::string ndn::nfd::FaceTraits< FaceEventNotification >::m_localUri
protectedinherited

Definition at line 185 of file face-traits.hpp.

◆ m_remoteUri

std::string ndn::nfd::FaceTraits< FaceEventNotification >::m_remoteUri
protectedinherited

Definition at line 184 of file face-traits.hpp.

◆ m_wire

Block ndn::nfd::FaceTraits< FaceEventNotification >::m_wire
mutableprotectedinherited

Definition at line 191 of file face-traits.hpp.