IBR-DTNSuite  0.10
dtn::core::Event Class Referenceabstract

#include <Event.h>

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

Public Member Functions

virtual ~Event ()=0
 
virtual const std::string getName () const =0
 
virtual std::string toString () const
 
virtual std::string getMessage () const =0
 
bool isLoggable () const
 

Public Attributes

const int prio
 

Protected Member Functions

 Event (int prio=0)
 
void setLoggable (bool val)
 

Detailed Description

Definition at line 31 of file Event.h.

Constructor & Destructor Documentation

dtn::core::Event::~Event ( )
pure virtual

Definition at line 29 of file Event.cpp.

dtn::core::Event::Event ( int  prio = 0)
protected

Definition at line 28 of file Event.cpp.

Member Function Documentation

bool dtn::core::Event::isLoggable ( ) const

If this event should be logged, this method returns true

Definition at line 31 of file Event.cpp.

void dtn::core::Event::setLoggable ( bool  val)
protected

Definition at line 36 of file Event.cpp.

std::string dtn::core::Event::toString ( ) const
virtual

Get a string representation of this event.

Definition at line 41 of file Event.cpp.

References getMessage(), and getName().

Here is the call graph for this function:

Member Data Documentation

const int dtn::core::Event::prio

Contains the priority of this event.

Definition at line 60 of file Event.h.

Referenced by dtn::core::EventSwitch::queue().


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