IBR-DTNSuite  0.8
dtn::core::GlobalEvent Class Reference

#include <GlobalEvent.h>

Inheritance diagram for dtn::core::GlobalEvent:
Collaboration diagram for dtn::core::GlobalEvent:

List of all members.

Public Types

enum  Action {
  GLOBAL_SHUTDOWN = 0, GLOBAL_RELOAD = 1, GLOBAL_IDLE = 2, GLOBAL_BUSY = 3,
  GLOBAL_SUSPEND = 4, GLOBAL_POWERSAVE = 5, GLOBAL_WAKEUP = 6
}

Public Member Functions

virtual ~GlobalEvent ()
const std::string getName () const
Action getAction () const
std::string toString () const

Static Public Member Functions

static void raise (const Action a)

Static Public Attributes

static const std::string className = "GlobalEvent"

Detailed Description

Definition at line 17 of file GlobalEvent.h.


Member Enumeration Documentation

Enumerator:
GLOBAL_SHUTDOWN 
GLOBAL_RELOAD 
GLOBAL_IDLE 
GLOBAL_BUSY 
GLOBAL_SUSPEND 
GLOBAL_POWERSAVE 
GLOBAL_WAKEUP 

Definition at line 20 of file GlobalEvent.h.


Constructor & Destructor Documentation

Definition at line 20 of file GlobalEvent.cpp.


Member Function Documentation

const string dtn::core::GlobalEvent::getName ( ) const [virtual]

Implements dtn::core::Event.

Definition at line 29 of file GlobalEvent.cpp.

References className.

Referenced by dtn::api::EventConnection::raiseEvent().

void dtn::core::GlobalEvent::raise ( const Action  a) [static]

Definition at line 34 of file GlobalEvent.cpp.

References dtn::core::Event::raiseEvent().

Referenced by __daemon_run(), and sighandler().

Here is the call graph for this function:

string dtn::core::GlobalEvent::toString ( ) const [virtual]

Implements dtn::core::Event.

Definition at line 40 of file GlobalEvent.cpp.

References className.


Member Data Documentation


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