17.2.11.3. WriterListener¶
-
class
eprosima::fastrtps::rtps
::
WriterListener
¶ Class WriterListener with virtual method so the user can implement callbacks to certain events.
Public Functions
-
void
onWriterMatched
(RTPSWriter *writer, MatchingInfo &info)¶ This method is called when a new Reader is matched with this Writer by the builtin protocols
- Parameters
writer
: Pointer to the RTPSWriter.info
: Matching Information.
-
void
onWriterMatched
(RTPSWriter *writer, const eprosima::fastdds::dds::PublicationMatchedStatus &info)¶ This method is called when a new Reader is matched with this Writer by the builtin protocols
- Parameters
writer
: Pointer to the RTPSWriter.info
: Publication matching information.
-
void
on_offered_incompatible_qos
(RTPSWriter *writer, eprosima::fastdds::dds::PolicyMask qos)¶ This method is called when a new Reader is discovered, with a Topic that matches that of a local writer, but with a requested QoS that is incompatible with the one offered by the local writer
- Parameters
writer
: Pointer to the RTPSWriter.qos
: A mask with the bits of all incompatible Qos activated.
-
void
onWriterChangeReceivedByAll
(RTPSWriter *writer, CacheChange_t *change)¶ This method is called when all the readers matched with this Writer acknowledge that a cache change has been received.
- Parameters
writer
: Pointer to the RTPSWriter.change
: Pointer to the affected CacheChange_t.
-
void
on_liveliness_lost
(RTPSWriter *writer, const LivelinessLostStatus &status)¶ Method called when the liveliness of a writer is lost.
- Parameters
writer
: The writerstatus
: The liveliness lost status
-
void