Fast DDS  Version 3.6.1.0
Fast DDS
DataReaderListener Class Reference

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

#include <DataReaderListener.hpp>

Inheritance diagram for DataReaderListener:
SubscriberListener DomainParticipantListener

Public Member Functions

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 DataReaderListener, it should be used by the end user to implement specific callbacks to certain actions.

Constructor & Destructor Documentation

◆ DataReaderListener()

FASTDDS_EXPORTED_API DataReaderListener ( )
inline

Constructor.

◆ ~DataReaderListener()

virtual FASTDDS_EXPORTED_API ~DataReaderListener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ on_data_available()

virtual FASTDDS_EXPORTED_API void on_data_available ( DataReader reader)
inlinevirtual

Virtual function to be implemented by the user containing the actions to be performed when new Data Messages are received.

Parameters
readerDataReader

◆ on_liveliness_changed()

virtual FASTDDS_EXPORTED_API void on_liveliness_changed ( DataReader reader,
const LivelinessChangedStatus status 
)
inlinevirtual

Method called when the liveliness status associated to a subscriber changes.

Parameters
readerThe DataReader
statusThe liveliness changed status

◆ on_requested_deadline_missed()

virtual FASTDDS_EXPORTED_API void on_requested_deadline_missed ( DataReader reader,
const RequestedDeadlineMissedStatus status 
)
inlinevirtual

Virtual method to be called when a topic misses the deadline period.

Parameters
readerDataReader
statusThe requested deadline missed status

◆ on_requested_incompatible_qos()

virtual FASTDDS_EXPORTED_API void on_requested_incompatible_qos ( DataReader reader,
const RequestedIncompatibleQosStatus status 
)
inlinevirtual

Method called an incompatible QoS was requested.

Parameters
readerThe DataReader
statusThe requested incompatible QoS status

◆ on_sample_lost()

virtual FASTDDS_EXPORTED_API void on_sample_lost ( DataReader reader,
const SampleLostStatus status 
)
inlinevirtual

Method called when a sample was lost.

Parameters
readerThe DataReader
statusThe sample lost status

◆ on_sample_rejected()

virtual FASTDDS_EXPORTED_API void on_sample_rejected ( DataReader reader,
const SampleRejectedStatus status 
)
inlinevirtual

Method called when a sample was rejected.

Parameters
readerThe DataReader
statusThe rejected status

◆ on_subscription_matched()

virtual FASTDDS_EXPORTED_API void on_subscription_matched ( DataReader reader,
const fastdds::dds::SubscriptionMatchedStatus info 
)
inlinevirtual

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.

Parameters
readerDataReader
infoThe subscription matched status

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