IBR-DTNSuite
0.12
|
#include <CustodyEvent.h>
Public Member Functions | |
virtual | ~CustodyEvent () |
EventCustodyAction | 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, const EventCustodyAction action) |
Static Public Attributes | |
static const std::string | className = "CustodyEvent" |
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 40 of file CustodyEvent.h.
|
virtual |
Definition at line 35 of file CustodyEvent.cpp.
EventCustodyAction dtn::core::CustodyEvent::getAction | ( | ) | const |
Definition at line 44 of file CustodyEvent.cpp.
Referenced by getMessage(), dtn::api::EventConnection::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
const dtn::data::MetaBundle & dtn::core::CustodyEvent::getBundle | ( | ) | const |
Definition at line 39 of file CustodyEvent.cpp.
Referenced by getMessage(), dtn::api::EventConnection::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 54 of file CustodyEvent.cpp.
References dtn::core::CUSTODY_ACCEPT, dtn::core::CUSTODY_REJECT, dtn::data::PrimaryBlock::CUSTODY_REQUESTED, getAction(), and getBundle().
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 49 of file CustodyEvent.cpp.
References className.
Referenced by dtn::api::EventConnection::raiseEvent().
|
static |
Definition at line 76 of file CustodyEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::storage::BundleStorage::acceptCustody(), and dtn::storage::BundleStorage::rejectCustody().
|
static |
Definition at line 53 of file CustodyEvent.h.
Referenced by getName().