OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <EventDispatcher.h>
Public Member Functions | |
virtual | ~EventBase () |
virtual void | handle_event ()=0 |
Called when the event is dispatched by an EventDispatcher. More... | |
virtual void | handle_error () |
Only called when an exception is caught during handle_event. More... | |
virtual void | handle_cancel () |
void | operator() () |
![]() | |
virtual | ~RcObject () |
virtual void | _add_ref () |
virtual void | _remove_ref () |
long | ref_count () const |
WeakObject * | _get_weak_object () const |
Additional Inherited Members | |
![]() | |
RcObject () | |
EventBase is an abstract base class for events
EventBase is an abstract base class for events dispatched or scheduled by an EventDispatcher. Derived classes are required to implement handle_event which will be called when the event is dispatched by the event dispatcher
Definition at line 27 of file EventDispatcher.h.
|
virtual |
Definition at line 17 of file EventDispatcher.cpp.
|
virtual |
Called when the dispatch or schedule of an event is canceled by an EventDispatcher, for example when immediate shutdown is requested
Reimplemented in OpenDDS::DCPS::PeriodicEvent, and OpenDDS::DCPS::SporadicEvent.
Definition at line 25 of file EventDispatcher.cpp.
Referenced by OpenDDS::DCPS::ServiceEventDispatcher::cancel(), and OpenDDS::DCPS::ServiceEventDispatcher::shutdown().
|
virtual |
Only called when an exception is caught during handle_event.
Definition at line 21 of file EventDispatcher.cpp.
Referenced by operator()().
|
pure virtual |
Called when the event is dispatched by an EventDispatcher.
Implemented in OpenDDS::RTPS::Sedp::ReaderRemoveAssociations, OpenDDS::RTPS::Sedp::ReaderAddAssociation, OpenDDS::RTPS::Sedp::WriterRemoveAssociations, OpenDDS::RTPS::Sedp::WriterAddAssociation, OpenDDS::DCPS::RtpsUdpDataLink::ReplayDurableData, OpenDDS::DCPS::TransportImpl::DoClear, OpenDDS::DCPS::PmfNowEvent< Delegate >, OpenDDS::DCPS::PeriodicEvent, OpenDDS::DCPS::PmfEvent< Delegate >, and OpenDDS::DCPS::SporadicEvent.
Referenced by operator()().
void OpenDDS::DCPS::EventBase::operator() | ( | void | ) |
Definition at line 29 of file EventDispatcher.cpp.
References OpenDDS::DCPS::RcObject::_remove_ref(), handle_error(), and handle_event().