Fast DDS  Version 3.6.1.0
Fast DDS
SubscriberListener Class Reference

Class SubscriberListener, it should be used by the end user to implement specific callbacks to certain actions. More...

#include <SubscriberListener.hpp>

Inheritance diagram for SubscriberListener:
DataReaderListener DomainParticipantListener

Public Member Functions

FASTDDS_EXPORTED_API SubscriberListener ()
 Constructor. More...
 
virtual FASTDDS_EXPORTED_API ~SubscriberListener ()
 Destructor. More...
 
virtual FASTDDS_EXPORTED_API void on_data_on_readers (Subscriber *sub)
 Virtual function to be implemented by the user containing the actions to be performed when a new Data Message is available on any reader. More...
 
- Public Member Functions inherited from DataReaderListener
FASTDDS_EXPORTED_API DataReaderListener ()
 Constructor. More...
 
virtual FASTDDS_EXPORTED_API ~DataReaderListener ()
 Destructor. More...
 
virtual FASTDDS_EXPORTED_API void on_data_available (DataReader *reader)
 Virtual function to be implemented by the user containing the actions to be performed when new Data Messages are received. More...
 
virtual FASTDDS_EXPORTED_API void on_subscription_matched (DataReader *reader, const fastdds::dds::SubscriptionMatchedStatus &info)
 Virtual method to be called when the subscriber is matched with a new Writer (or unmatched); i.e., when a writer publishing in the same topic is discovered. More...
 
virtual FASTDDS_EXPORTED_API void on_requested_deadline_missed (DataReader *reader, const RequestedDeadlineMissedStatus &status)
 Virtual method to be called when a topic misses the deadline period. More...
 
virtual FASTDDS_EXPORTED_API void on_liveliness_changed (DataReader *reader, const LivelinessChangedStatus &status)
 Method called when the liveliness status associated to a subscriber changes. More...
 
virtual FASTDDS_EXPORTED_API void on_sample_rejected (DataReader *reader, const SampleRejectedStatus &status)
 Method called when a sample was rejected. More...
 
virtual FASTDDS_EXPORTED_API void on_requested_incompatible_qos (DataReader *reader, const RequestedIncompatibleQosStatus &status)
 Method called an incompatible QoS was requested. More...
 
virtual FASTDDS_EXPORTED_API void on_sample_lost (DataReader *reader, const SampleLostStatus &status)
 Method called when a sample was lost. More...
 

Detailed Description

Class SubscriberListener, it should be used by the end user to implement specific callbacks to certain actions.

It also inherits all DataReaderListener callbacks.

Constructor & Destructor Documentation

◆ SubscriberListener()

FASTDDS_EXPORTED_API SubscriberListener ( )
inline

Constructor.

◆ ~SubscriberListener()

virtual FASTDDS_EXPORTED_API ~SubscriberListener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ on_data_on_readers()

virtual FASTDDS_EXPORTED_API void on_data_on_readers ( Subscriber sub)
inlinevirtual

Virtual function to be implemented by the user containing the actions to be performed when a new Data Message is available on any reader.

Parameters
subSubscriber

The documentation for this class was generated from the following file: