dtn::BundleEvent Class Reference

#include <BundleEvent.h>

Inheritance diagram for dtn::BundleEvent:

dtn::BundleDeliveredEvent dtn::BundleExpiredEvent dtn::BundleFreeEvent dtn::BundleReceivedEvent dtn::BundleTransmitFailedEvent dtn::BundleTransmittedEvent dtn::ContactEvent dtn::CustodySignalEvent dtn::CustodyTimeoutEvent dtn::ReassemblyCompletedEvent dtn::RegistrationAddedEvent dtn::RegistrationExpiredEvent dtn::RegistrationRemovedEvent dtn::RouteAddEvent dtn::RouteDelEvent dtn::ShutdownRequest dtn::StatusRequest List of all members.

Detailed Description

Event base class.

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::Notifierprocessed_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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

const event_type_t dtn::BundleEvent::type_

The event type code.

Definition at line 164 of file BundleEvent.h.

Referenced by dtn::BundleEventHandler::dispatch_event(), and type_str().

bool dtn::BundleEvent::daemon_only_

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().

oasys::Notifier* dtn::BundleEvent::processed_notifier_

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().


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 14:48:03 2006 for DTN Reference Implementation by  doxygen 1.5.1