15.2.8.1. ReaderListener¶
-
class
eprosima::fastrtps::rtps
::
ReaderListener
¶ Class ReaderListener, to be used by the user to override some of is virtual method to program actions to certain events.
Subclassed by eprosima::fastdds::dds::builtin::TypeLookupReplyListener, eprosima::fastdds::dds::builtin::TypeLookupRequestListener, eprosima::fastrtps::rtps::PDPListener, eprosima::fastrtps::rtps::WLPListener
Public Functions
-
void
onReaderMatched
(RTPSReader *reader, MatchingInfo &info)¶ This method is invoked when a new reader matches
- Parameters
reader
: Matching readerinfo
: Matching information of the reader
-
void
onReaderMatched
(RTPSReader *reader, const fastdds::dds::SubscriptionMatchedStatus &info)¶ This method is invoked when a new reader matches
- Parameters
reader
: Matching readerinfo
: Subscription matching information
-
void
onNewCacheChangeAdded
(RTPSReader *reader, const CacheChange_t *const change)¶ This method is called when a new CacheChange_t is added to the ReaderHistory.
- Parameters
reader
: Pointer to the reader.change
: Pointer to the CacheChange_t. This is a const pointer to const data to indicate that the user should not dispose of this data himself. To remove the data call the remove_change method of the ReaderHistory. reader->getHistory()->remove_change((CacheChange_t*)change).
-
void
on_liveliness_changed
(RTPSReader *reader, const LivelinessChangedStatus &status)¶ Method called when the livelivess of a reader changes.
- Parameters
reader
: The readerstatus
: The liveliness changed status
-
void
on_requested_incompatible_qos
(RTPSReader *reader, eprosima::fastdds::dds::PolicyMask qos)¶ This method is called when a new Writer is discovered, with a Topic that matches that of a local reader, but with an offered QoS that is incompatible with the one requested by the local reader
- Parameters
reader
: Pointer to the RTPSReader.qos
: A mask with the bits of all incompatible Qos activated.
-
void