#include <EventSwitch.h>
Public Member Functions | |
| void | loop () |
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::componentDown | ( | ) | [protected, virtual] |
Implements dtn::daemon::IntegratedComponent.
Definition at line 34 of file EventSwitch.cpp.
References ibrcommon::ThreadSafeQueue< T >::empty(), ibrcommon::ThreadSafeQueue< T >::frontpop(), and ibrcommon::ThreadSafeQueue< T >::unblock().
| 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 131 of file EventSwitch.cpp.
Referenced by main(), raiseEvent(), registerEventReceiver(), and unregisterEventReceiver().
| void dtn::core::EventSwitch::loop | ( | ) |
Definition at line 49 of file EventSwitch.cpp.
References ibrcommon::ThreadSafeQueue< T >::blockingpop(), dtn::core::GlobalEvent::getAction(), dtn::core::Event::getName(), dtn::core::GlobalEvent::GLOBAL_SHUTDOWN, and dtn::core::EventDebugger::raiseEvent().
Referenced by main().
| void dtn::core::EventSwitch::raiseEvent | ( | Event * | evt | ) | [static, protected] |
Definition at line 125 of file EventSwitch.cpp.
References getInstance(), and ibrcommon::ThreadSafeQueue< T >::push().
| void dtn::core::EventSwitch::registerEventReceiver | ( | string | eventName, | |
| EventReceiver * | receiver | |||
| ) | [static, protected] |
Definition at line 109 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 117 of file EventSwitch.cpp.
References getInstance().
Referenced by dtn::core::EventReceiver::unbindEvent().
friend class Event [friend] |
Definition at line 63 of file EventSwitch.h.
friend class EventReceiver [friend] |
Definition at line 64 of file EventSwitch.h.
1.6.3