Class DataReaderListener

Inheritance Relationships

Derived Types

Class Documentation

class DataReaderListener

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

Subclassed by dds::sub::DataReaderListener, eprosima::fastdds::dds::SubscriberListener

Public Functions

inline RTPS_DllAPI DataReaderListener()

Constructor.

inline virtual RTPS_DllAPI ~DataReaderListener()

Destructor.

inline virtual RTPS_DllAPI 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.

Parameters:

readerDataReader

inline virtual RTPS_DllAPI 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.

Parameters:
  • readerDataReader

  • info – The subscription matched status

inline virtual RTPS_DllAPI void on_requested_deadline_missed (DataReader *reader, const fastrtps::RequestedDeadlineMissedStatus &status)

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

Parameters:
  • readerDataReader

  • status – The requested deadline missed status

inline virtual RTPS_DllAPI void on_liveliness_changed (DataReader *reader, const fastrtps::LivelinessChangedStatus &status)

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

Parameters:
  • reader – The DataReader

  • status – The liveliness changed status

inline virtual RTPS_DllAPI void on_sample_rejected (DataReader *reader, const fastrtps::SampleRejectedStatus &status)

Method called when a sample was rejected.

Parameters:
  • reader – The DataReader

  • status – The rejected status

inline virtual RTPS_DllAPI void on_requested_incompatible_qos (DataReader *reader, const RequestedIncompatibleQosStatus &status)

Method called an incompatible QoS was requested.

Parameters:
  • reader – The DataReader

  • status – The requested incompatible QoS status

inline virtual RTPS_DllAPI void on_sample_lost (DataReader *reader, const SampleLostStatus &status)

Method called when a sample was lost.

Parameters:
  • reader – The DataReader

  • status – The sample lost status