IBR-DTNSuite
0.12
|
#include <BundleEvent.h>
Public Member Functions | |
virtual | ~BundleEvent () |
dtn::data::StatusReportBlock::REASON_CODE | getReason () const |
EventBundleAction | getAction () const |
const dtn::data::MetaBundle & | getBundle () const |
const std::string | getName () const |
std::string | getMessage () const |
Public Member Functions inherited from dtn::core::Event | |
virtual | ~Event ()=0 |
virtual std::string | toString () const |
bool | isLoggable () const |
Static Public Member Functions | |
static void | raise (const dtn::data::MetaBundle &bundle, EventBundleAction action, dtn::data::StatusReportBlock::REASON_CODE reason=dtn::data::StatusReportBlock::NO_ADDITIONAL_INFORMATION) |
Static Public Attributes | |
static const std::string | className = "BundleEvent" |
Additional Inherited Members | |
Public Attributes inherited from dtn::core::Event | |
const int | prio |
Protected Member Functions inherited from dtn::core::Event | |
Event (int prio=0) | |
void | setLoggable (bool val) |
Definition at line 45 of file BundleEvent.h.
|
virtual |
Definition at line 32 of file BundleEvent.cpp.
EventBundleAction dtn::core::BundleEvent::getAction | ( | ) | const |
Definition at line 40 of file BundleEvent.cpp.
Referenced by getMessage(), and dtn::core::StatusReportGenerator::raiseEvent().
const dtn::data::MetaBundle & dtn::core::BundleEvent::getBundle | ( | ) | const |
Definition at line 35 of file BundleEvent.cpp.
Referenced by getMessage(), and dtn::core::StatusReportGenerator::raiseEvent().
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 55 of file BundleEvent.cpp.
References dtn::core::BUNDLE_CUSTODY_ACCEPTED, dtn::core::BUNDLE_DELETED, dtn::core::BUNDLE_DELIVERED, dtn::core::BUNDLE_FORWARDED, dtn::core::BUNDLE_RECEIVED, dtn::core::BUNDLE_STORED, getAction(), getBundle(), and dtn::data::BundleID::toString().
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 50 of file BundleEvent.cpp.
References className.
dtn::data::StatusReportBlock::REASON_CODE dtn::core::BundleEvent::getReason | ( | ) | const |
Definition at line 45 of file BundleEvent.cpp.
Referenced by dtn::core::StatusReportGenerator::raiseEvent().
|
static |
Definition at line 78 of file BundleEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::api::Registration::delivered(), dtn::storage::MemoryBundleStorage::eventBundleExpired(), dtn::storage::SimpleBundleStorage::eventBundleExpired(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::core::BundleCore::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), and dtn::core::BundleCore::validate().
|
static |
Definition at line 59 of file BundleEvent.h.
Referenced by getName().