RTI Connext Modern C++ API Version 7.3.0
rti::queuing::NoOpQueueConsumerListener< T > Class Template Reference

A listener with an empty implementation of all methods. More...

#include <QueueConsumerListener.hpp>

Inheritance diagram for rti::queuing::NoOpQueueConsumerListener< T >:
rti::queuing::QueueConsumerListener< T >

Public Member Functions

virtual void on_sample_available (QueueConsumer< T > &)
 User callback. More...
 
virtual void on_shared_reader_queue_matched (QueueConsumer< T > &, const dds::core::status::SubscriptionMatchedStatus &)
 User callback. More...
 
virtual void on_sample_available (QueueConsumer< T > &consumer)=0
 User callback. More...
 
virtual void on_shared_reader_queue_matched (QueueConsumer< T > &consumer, const dds::core::status::SubscriptionMatchedStatus &status)=0
 User callback. More...
 

Detailed Description

template<typename T>
class rti::queuing::NoOpQueueConsumerListener< T >

A listener with an empty implementation of all methods.

You can derive your listener from this class so you don't have to implement the methods you don't need.

Member Function Documentation

◆ on_sample_available()

template<typename T >
virtual void rti::queuing::NoOpQueueConsumerListener< T >::on_sample_available ( QueueConsumer< T > &  )
inlinevirtual

User callback.

This callback is invoked whenever the QueueConsumer has received at least one sample. Any operation to get samples i.e. QueueConsumer::take_sample) can be called within this context.

See also
dds::sub::DataReaderListener::on_data_available

Implements rti::queuing::QueueConsumerListener< T >.

◆ on_shared_reader_queue_matched()

template<typename T >
virtual void rti::queuing::NoOpQueueConsumerListener< T >::on_shared_reader_queue_matched ( QueueConsumer< T > &  ,
const dds::core::status::SubscriptionMatchedStatus  
)
inlinevirtual

User callback.

This callback is invoked whenever a new SharedReaderQueue hosted by Queuing Service has matched the QueueConsumer, or if an existing matching SharedReaderQueue is disposed.

See also
dds::core::status::SubscriptionMatchedStatus
dds::sub::DataReaderListener::on_subscription_matched

Implements rti::queuing::QueueConsumerListener< T >.