#include <BundleEvent.h>
Inheritance diagram for dtn::BundleEvent:
Definition at line 159 of file BundleEvent.h.
Public Member Functions | |
const char * | type_str () |
Used for printing. | |
virtual | ~BundleEvent () |
Need a virtual destructor to make sure all the right bits are cleaned up and to notify any threads that are waiting for the event to be processed. | |
Public Attributes | |
const event_type_t | type_ |
The event type code. | |
bool | daemon_only_ |
Bit indicating whether this event is for the daemon only or if it should be propagated to other components (i.e. | |
oasys::Notifier * | processed_notifier_ |
Slot for a notifier to indicate that the event was processed. | |
Protected Member Functions | |
BundleEvent (event_type_t type) | |
Constructor (protected since one of the subclasses should always be that which is actually initialized. |
virtual dtn::BundleEvent::~BundleEvent | ( | ) | [inline, virtual] |
Need a virtual destructor to make sure all the right bits are cleaned up and to notify any threads that are waiting for the event to be processed.
Definition at line 190 of file BundleEvent.h.
References oasys::Notifier::notify(), and processed_notifier_.
dtn::BundleEvent::BundleEvent | ( | event_type_t | type | ) | [inline, protected] |
Constructor (protected since one of the subclasses should always be that which is actually initialized.
Definition at line 202 of file BundleEvent.h.
const char* dtn::BundleEvent::type_str | ( | ) | [inline] |
Used for printing.
Definition at line 181 of file BundleEvent.h.
References dtn::event_to_str(), and type_.
Referenced by dtn::BundleEventHandler::dispatch_event(), dtn::BundleDaemon::post_event(), and dtn::BundleDaemon::run().
The event type code.
Definition at line 164 of file BundleEvent.h.
Referenced by dtn::BundleEventHandler::dispatch_event(), and type_str().
Bit indicating whether this event is for the daemon only or if it should be propagated to other components (i.e.
the various routers).
Definition at line 171 of file BundleEvent.h.
Referenced by dtn::BundleFreeEvent::BundleFreeEvent(), dtn::BundleDaemon::handle_bundle_received(), dtn::BundleDaemon::handle_event(), dtn::LinkStateChangeRequest::LinkStateChangeRequest(), dtn::ShutdownRequest::ShutdownRequest(), and dtn::StatusRequest::StatusRequest().
Slot for a notifier to indicate that the event was processed.
Definition at line 176 of file BundleEvent.h.
Referenced by dtn::BundleDaemon::post_and_wait(), and ~BundleEvent().