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

#include <EventSwitch.h>

Inheritance diagram for dtn::core::EventSwitch:
Collaboration diagram for dtn::core::EventSwitch:

List of all members.

Classes

class  Task
class  Worker

Public Member Functions

void loop (size_t threads=0)
void clear ()

Static Public Member Functions

static EventSwitchgetInstance ()

Protected Member Functions

virtual void componentUp ()
virtual void componentDown ()

Static Protected Member Functions

static void registerEventReceiver (string eventName, EventReceiver *receiver)
static void unregisterEventReceiver (string eventName, EventReceiver *receiver)
static void raiseEvent (Event *evt)

Friends

class Event
class EventReceiver
class Worker

Detailed Description

Definition at line 41 of file EventSwitch.h.


Member Function Documentation

Definition at line 288 of file EventSwitch.cpp.

void dtn::core::EventSwitch::componentDown ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 35 of file EventSwitch.cpp.

References ibrcommon::Conditional::abort(), and ibrcommon::Conditional::wait().

Here is the call graph for this function:

void dtn::core::EventSwitch::componentUp ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 31 of file EventSwitch.cpp.

void dtn::core::EventSwitch::loop ( size_t  threads = 0)

Definition at line 103 of file EventSwitch.cpp.

References Worker.

Referenced by __daemon_run().

void dtn::core::EventSwitch::registerEventReceiver ( string  eventName,
EventReceiver receiver 
) [static, protected]

Definition at line 157 of file EventSwitch.cpp.

References getInstance().

Referenced by dtn::core::EventReceiver::bindEvent().

Here is the call graph for this function:

void dtn::core::EventSwitch::unregisterEventReceiver ( string  eventName,
EventReceiver receiver 
) [static, protected]

Definition at line 165 of file EventSwitch.cpp.

References getInstance().

Referenced by dtn::core::EventReceiver::unbindEvent().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Event [friend]

Definition at line 108 of file EventSwitch.h.

friend class EventReceiver [friend]

Definition at line 109 of file EventSwitch.h.

friend class Worker [friend]

Definition at line 120 of file EventSwitch.h.

Referenced by loop().


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