Class SubListener

Inheritance Relationships

Base Types

Class Documentation

class SubListener : public EventListenerInterface, public eprosima::fastdds::dds::DataReaderListener

Public Functions

inline explicit SubListener(CustomSubscriberInfo *info)
inline void on_subscription_matched(eprosima::fastdds::dds::DataReader*, const eprosima::fastdds::dds::SubscriptionMatchedStatus &info) final
inline void on_data_available(eprosima::fastdds::dds::DataReader*) final
void on_requested_deadline_missed(eprosima::fastdds::dds::DataReader*, const eprosima::fastrtps::RequestedDeadlineMissedStatus&) final
void on_liveliness_changed(eprosima::fastdds::dds::DataReader*, const eprosima::fastrtps::LivelinessChangedStatus&) final
void on_sample_lost(eprosima::fastdds::dds::DataReader*, const eprosima::fastdds::dds::SampleLostStatus&) final
void on_requested_incompatible_qos(eprosima::fastdds::dds::DataReader*, const eprosima::fastdds::dds::RequestedIncompatibleQosStatus&) final
inline size_t publisherCount()
void set_on_new_message_callback(const void *user_data, rmw_event_callback_t callback)
inline size_t get_unread_messages()
virtual eprosima::fastdds::dds::StatusCondition &get_statuscondition() const final
virtual bool take_event(rmw_event_type_t event_type, void *event_info) final

Take ready data for an event type.

Parameters:
  • event_type – The event type to get data for.

  • event_info – A preallocated event information (from rmw/types.h) to fill with data

Returns:

true if data was successfully taken.

Returns:

false if data was not available, in this case nothing was written to event_info.

virtual void set_on_new_event_callback(rmw_event_type_t event_type, const void *user_data, rmw_event_callback_t callback) final