IBR-DTNSuite 0.6

dtn::core::EventSwitch Class Reference

#include <EventSwitch.h>

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

List of all members.

Public Member Functions

void loop ()
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

Detailed Description

Definition at line 43 of file EventSwitch.h.


Member Function Documentation

void dtn::core::EventSwitch::clear ( )

Definition at line 148 of file EventSwitch.cpp.

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

Implements dtn::daemon::IntegratedComponent.

Definition at line 34 of file EventSwitch.cpp.

References ibrcommon::Queue< T >::abort(), and ibrcommon::Queue< T >::getnpop().

Here is the call graph for this function:

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

Implements dtn::daemon::IntegratedComponent.

Definition at line 30 of file EventSwitch.cpp.

EventSwitch & dtn::core::EventSwitch::getInstance ( ) [static]
void dtn::core::EventSwitch::loop ( )
void dtn::core::EventSwitch::raiseEvent ( Event evt) [static, protected]

Definition at line 131 of file EventSwitch.cpp.

References getInstance(), and ibrcommon::Queue< T >::push().

Here is the call graph for this function:

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

Definition at line 115 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 123 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 68 of file EventSwitch.h.

friend class EventReceiver [friend]

Definition at line 69 of file EventSwitch.h.


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