IBR-DTNSuite  0.12
dtn::core::BundlePurgeEvent Class Reference

#include <BundlePurgeEvent.h>

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

Public Types

enum  REASON_CODE { DELIVERED = 0, NO_ROUTE_KNOWN = 1, ACK_RECIEVED = 2 }
 

Public Member Functions

virtual ~BundlePurgeEvent ()
 
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 &meta, REASON_CODE reason=DELIVERED)
 

Public Attributes

const dtn::data::MetaBundle bundle
 
const REASON_CODE reason
 
- Public Attributes inherited from dtn::core::Event
const int prio
 

Static Public Attributes

static const std::string className = "BundlePurgeEvent"
 

Additional Inherited Members

- Protected Member Functions inherited from dtn::core::Event
 Event (int prio=0)
 
void setLoggable (bool val)
 

Detailed Description

Definition at line 33 of file BundlePurgeEvent.h.

Member Enumeration Documentation

Enumerator
DELIVERED 
NO_ROUTE_KNOWN 
ACK_RECIEVED 

Definition at line 36 of file BundlePurgeEvent.h.

Constructor & Destructor Documentation

dtn::core::BundlePurgeEvent::~BundlePurgeEvent ( )
virtual

Definition at line 34 of file BundlePurgeEvent.cpp.

Member Function Documentation

std::string dtn::core::BundlePurgeEvent::getMessage ( ) const
virtual

Get a describing message for this event

Implements dtn::core::Event.

Definition at line 49 of file BundlePurgeEvent.cpp.

References bundle, and dtn::data::BundleID::toString().

Here is the call graph for this function:

const std::string dtn::core::BundlePurgeEvent::getName ( ) const
virtual

Get the name of this event.

Implements dtn::core::Event.

Definition at line 44 of file BundlePurgeEvent.cpp.

References className.

void dtn::core::BundlePurgeEvent::raise ( const dtn::data::MetaBundle meta,
REASON_CODE  reason = DELIVERED 
)
static

Member Data Documentation

const dtn::data::MetaBundle dtn::core::BundlePurgeEvent::bundle
const std::string dtn::core::BundlePurgeEvent::className = "BundlePurgeEvent"
static

Definition at line 52 of file BundlePurgeEvent.h.

Referenced by getName().

const REASON_CODE dtn::core::BundlePurgeEvent::reason

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