#include <custom_event_info.hpp>
◆ attachCondition()
Connect a condition variable so a waiter can be notified of new data.
Implemented in SubListener, and PubListener.
◆ detachCondition()
virtual void EventListenerInterface::detachCondition |
( |
| ) |
|
|
pure virtual |
◆ hasEvent()
virtual bool EventListenerInterface::hasEvent |
( |
rmw_event_type_t |
event_type | ) |
const |
|
pure virtual |
Check if there is new data available for a specific event type.
- Parameters
-
event_type | The event type to check on. |
- Returns
true
if new data is available.
Implemented in SubListener, and PubListener.
◆ takeNextEvent()
virtual bool EventListenerInterface::takeNextEvent |
( |
rmw_event_type_t |
event_type, |
|
|
void * |
event_info |
|
) |
| |
|
pure virtual |
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.
-
false
if data was not available, in this case nothing was written to event_info.
Implemented in SubListener, and PubListener.
The documentation for this class was generated from the following file: