Class EventListenerInterface

Inheritance Relationships

Derived Types

Class Documentation

class EventListenerInterface

Subclassed by PubListener, SubListener

Public Functions

virtual eprosima::fastdds::dds::StatusCondition &get_statuscondition() const = 0
virtual bool take_event(rmw_event_type_t event_type, void *event_info) = 0

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) = 0
inline eprosima::fastdds::dds::GuardCondition &get_event_guard(rmw_event_type_t event_type)

Protected Attributes

eprosima::fastdds::dds::GuardCondition event_guard[RMW_EVENT_INVALID]
rmw_event_callback_t on_new_event_cb_[RMW_EVENT_INVALID] = {nullptr}
const void *user_data_[RMW_EVENT_INVALID] = {nullptr}
std::mutex on_new_event_m_