RTI Connext Modern C++ API  Version 5.3.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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.
 

Detailed Description

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

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

Entity:
dds::topic::Topic
Status:
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
Listener
dds::topic::Topic::listener(TopicListener*, const dds::core::status::StatusMask&)
Operations Allowed in Listener Callbacks
NoOpTopicListener

Member Function Documentation

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.

Parameters
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 >.


RTI Connext Modern C++ API Version 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc