14.1.3.2. DataWriterListener

class eprosima::fastdds::dds::DataWriterListener

Class DataWriterListener, allows the end user to implement callbacks triggered by certain events.

Subclassed by eprosima::fastdds::dds::PublisherListener

Public Functions

DataWriterListener()

Constructor.

~DataWriterListener()

Destructor.

void on_publication_matched(DataWriter *writer, const PublicationMatchedStatus &info)

This method is called when the Publisher is matched (or unmatched) against an endpoint.

Parameters
  • writer: Pointer to the associated Publisher

  • info: Information regarding the matched subscriber

void on_offered_deadline_missed(DataWriter *writer, const OfferedDeadlineMissedStatus &status)

A method called when a deadline is missed

Parameters
  • writer: Pointer to the associated Publisher

  • status: The deadline missed status

void on_offered_incompatible_qos(DataWriter *writer, const OfferedIncompatibleQosStatus &status)

A method called when an incompatible QoS is offered

Parameters
  • writer: Pointer to the associated Publisher

  • status: The deadline missed status

void on_liveliness_lost(DataWriter *writer, const LivelinessLostStatus &status)

Method called when the livelivess of a publisher is lost.

Parameters
  • writer: The publisher

  • status: The liveliness lost status