#include <EventSwitch.h>
Inherits dtn::daemon::IntegratedComponent.

Public Member Functions | |
| void | loop () |
| void | clear () |
Static Public Member Functions | |
| static EventSwitch & | getInstance () |
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 |
Definition at line 43 of file EventSwitch.h.
| 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().

| 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] |
Definition at line 137 of file EventSwitch.cpp.
Referenced by main(), raiseEvent(), registerEventReceiver(), and unregisterEventReceiver().
| void dtn::core::EventSwitch::loop | ( | ) |
Definition at line 50 of file EventSwitch.cpp.
References dtn::core::GlobalEvent::getAction(), dtn::core::Event::getName(), ibrcommon::Queue< T >::getnpop(), and dtn::core::EventDebugger::raiseEvent().
Referenced by main().

| void dtn::core::EventSwitch::raiseEvent | ( | Event * | evt | ) | [static, protected] |
Definition at line 131 of file EventSwitch.cpp.
References getInstance(), and ibrcommon::Queue< T >::push().

| 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().

| 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().

friend class Event [friend] |
Definition at line 68 of file EventSwitch.h.
friend class EventReceiver [friend] |
Definition at line 69 of file EventSwitch.h.
1.7.1