Modern C++11 Listener Example

2 posts / 0 new
Last post
Offline
Last seen: 3 years 2 months ago
Joined: 07/08/2021
Posts: 4
Modern C++11 Listener Example

I've been working on implementing a modern listener for a DataReader in C++11 and it's causing me issues.  The examples are all C++03 that I can see.

Can anyone point me to an example that uses a Modern C++11 listener? I'm mostly interested in the class that I need to inherit from the template dds::sub::DataReaderListener<T> along with it's overrides and then calling set_listener on the data reader.

Offline
Last seen: 3 years 1 month ago
Joined: 08/09/2017
Posts: 25

Please see the API documentation here: DataReader Use Cases

On this page, look for "Implementing a DataReaderListener Class" and "Setting a listener on a DataReader".