IBR-DTNSuite  0.10
dtn::core::CustodyEvent Class Reference

#include <CustodyEvent.h>

Inheritance diagram for dtn::core::CustodyEvent:
Inheritance graph
Collaboration diagram for dtn::core::CustodyEvent:
Collaboration graph

Public Member Functions

virtual ~CustodyEvent ()
 
EventCustodyAction getAction () const
 
const dtn::data::MetaBundlegetBundle () 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)
 

Detailed Description

Definition at line 40 of file CustodyEvent.h.

Constructor & Destructor Documentation

dtn::core::CustodyEvent::~CustodyEvent ( )
virtual

Definition at line 35 of file CustodyEvent.cpp.

Member Function Documentation

EventCustodyAction dtn::core::CustodyEvent::getAction ( ) const
const dtn::data::MetaBundle & dtn::core::CustodyEvent::getBundle ( ) const
std::string dtn::core::CustodyEvent::getMessage ( ) const
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().

Here is the call graph for this function:

const std::string dtn::core::CustodyEvent::getName ( ) const
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().

void dtn::core::CustodyEvent::raise ( const dtn::data::MetaBundle bundle,
const EventCustodyAction  action 
)
static

Definition at line 76 of file CustodyEvent.cpp.

References dtn::core::EventDispatcher< E >::raise().

Referenced by dtn::storage::BundleStorage::acceptCustody(), and dtn::storage::BundleStorage::rejectCustody().

Here is the call graph for this function:

Member Data Documentation

const std::string dtn::core::CustodyEvent::className = "CustodyEvent"
static

Definition at line 53 of file CustodyEvent.h.

Referenced by getName().


The documentation for this class was generated from the following files: