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

#include <TimeEvent.h>

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

Public Member Functions

virtual ~TimeEvent ()
 
TimeEventAction getAction () const
 
const dtn::data::TimestampgetTimestamp () const
 
const dtn::data::TimestampgetUnixTimestamp () 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::Timestamp &timestamp, const dtn::data::Timestamp &unixtimestamp, const TimeEventAction action)
 

Static Public Attributes

static const std::string className = "TimeEvent"
 

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 37 of file TimeEvent.h.

Constructor & Destructor Documentation

dtn::core::TimeEvent::~TimeEvent ( )
virtual

Definition at line 36 of file TimeEvent.cpp.

Member Function Documentation

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

Get a describing message for this event

Implements dtn::core::Event.

Definition at line 67 of file TimeEvent.cpp.

References getAction(), getTimestamp(), dtn::core::TIME_SECOND_TICK, and dtn::data::SDNV< E >::toString().

Here is the call graph for this function:

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

Get the name of this event.

Implements dtn::core::Event.

Definition at line 56 of file TimeEvent.cpp.

References className.

const dtn::data::Timestamp & dtn::core::TimeEvent::getUnixTimestamp ( ) const
void dtn::core::TimeEvent::raise ( const dtn::data::Timestamp timestamp,
const dtn::data::Timestamp unixtimestamp,
const TimeEventAction  action 
)
static

Definition at line 61 of file TimeEvent.cpp.

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

Referenced by dtn::core::WallClock::timeout().

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 51 of file TimeEvent.h.

Referenced by getName().


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