OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
org::opensplice::topic::NoOpTopicListener< T > Class Template Referenceabstract

Topic proprietary events Listener. More...

#include "ProprietaryApi.hpp"

Inheritance diagram for org::opensplice::topic::NoOpTopicListener< T >:
Inheritance graph

Public Member Functions

virtual void on_all_data_disposed (dds::topic::Topic< T > &topic, const org::opensplice::core::status::AllDataDisposedTopicStatus &status)=0
 
virtual void on_inconsistent_topic (Topic< T > &topic, const dds::core::status::InconsistentTopicStatus &status)=0
 

Detailed Description

template<typename T>
class org::opensplice::topic::NoOpTopicListener< T >

Topic proprietary events Listener.

This listener is just like TopicListener, except that the application doesn't have to implement all operations.

This proprietary listener is a child of the specification listener and is made available to be able to trigger the on_all_data_disposed() proprietary event.

class ExampleListener : public virtual org::opensplice::topic::NoOpTopicListener<Foo::Bar>
{
// Not necessary to implement any Listener operations.
};
See also
dds::topic::TopicListener

Definition at line 171 of file ProprietaryApi.hpp.

Member Function Documentation

◆ on_all_data_disposed()

template<typename T>
virtual void org::opensplice::topic::TopicListener< T >::on_all_data_disposed ( dds::topic::Topic< T > &  topic,
const org::opensplice::core::status::AllDataDisposedTopicStatus status 
)
pure virtualinherited

This operation is called by the Data Distribution Service when the AllDataDisposedTopicStatus changes.

The implementation may be left empty when this functionality is not needed. This operation will only be called when the relevant TopicListener is installed and enabled with the dds::core::status::StatusMask::all_data_disposed_topic(). The AllDataDisposedTopicStatus will change when the node has completed disposal of data as a result of a call to dds::topic::AnyTopic::dispose_all_data().

Parameters
topiccontain a pointer to the Topic on which the conflict occurred (this is an input to the application).
statuscontain the AllDataDisposedTopicStatus object (this is an input to the application).

◆ 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 virtualinherited

This operation is called by the Data Distribution Service when the InconsistentTopicStatus changes.

The implementation may be left empty when this functionality is not needed. This operation will only be called when the relevant TopicListener is installed and enabled with the StatusMask::inconsistent_topic(). The InconsistentTopicStatus will change when another Topic exists with the same topic_name but different characteristics.

Parameters
topiccontain a pointer to the Topic on which the conflict occurred (this is an input to the application).
statuscontain the InconsistentTopicStatus object (this is an input to the application).

The documentation for this class was generated from the following file: