chrono::synchrono::SynDDSDataReaderListener Class Reference

Description

Data reader listener that can both count publishers on a topic and can be used as an asynchronous listener.

#include <SynDDSListener.h>

Inherits DataReaderListener.

Public Member Functions

 SynDDSDataReaderListener (std::function< void(void *)> callback, void *message)
 
virtual void on_data_available (eprosima::fastdds::dds::DataReader *reader) override
 
virtual void on_subscription_matched (eprosima::fastdds::dds::DataReader *reader, const eprosima::fastdds::dds::SubscriptionMatchedStatus &info) override
 
void SetOnDataAvailableCallback (std::function< void(void *)> callback)
 
void BlockUntilMatches (unsigned int matches)
 Wait for the specified number of matches Each subscriber listener has a callback that will be called when a subscriber is matched with a DataWriter. More...
 

Member Function Documentation

◆ BlockUntilMatches()

void chrono::synchrono::SynDDSDataReaderListener::BlockUntilMatches ( unsigned int  matches)
inline

Wait for the specified number of matches Each subscriber listener has a callback that will be called when a subscriber is matched with a DataWriter.

This function blocks until that the matches are achieved. By default, a subscriber will just wait for a single listener.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/SynDDSListener.h
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/SynDDSListener.cpp