RTI Connext Modern C++ API  Version 6.1.2
dds::topic::TopicListener< T > Class Template Referenceabstract

The listener to notify status changes for a dds::topic::Topic. More...

#include <dds/topic/TopicListener.hpp>

Inheritance diagram for dds::topic::TopicListener< T >:
dds::topic::NoOpTopicListener< T >

Public Member Functions

virtual void on_inconsistent_topic (Topic< T > &topic, const dds::core::status::InconsistentTopicStatus &status)=0
 Handles the dds::core::status::InconsistentTopicStatus status. More...

Detailed Description

template<typename T>
class dds::topic::TopicListener< T >

The listener to notify status changes for a dds::topic::Topic.

dds::core::status::StatusMask::inconsistent_topic(), dds::core::status::InconsistentTopicStatus

This is the interface that can be implemented by an application-provided class and then registered with the dds::topic::Topic such that the application can be notified by RTI Connext of relevant status changes.

See also
Status Kinds
Operations Allowed in Listener Callbacks

Member Function Documentation

◆ on_inconsistent_topic()

template<typename T>
virtual void dds::topic::TopicListener< T >::on_inconsistent_topic ( Topic< T > &  topic,
const dds::core::status::InconsistentTopicStatus status 
pure virtual

Handles the dds::core::status::InconsistentTopicStatus status.

This callback is called when a remote dds::topic::Topic is discovered but is inconsistent with the locally created dds::topic::Topic of the same topic name.

topic<<out>> Locally created dds::topic::Topic that triggers the listener callback
status<<out>> Current inconsistent status of locally created dds::topic::Topic

Implemented in dds::topic::NoOpTopicListener< T >.