IBR-DTNSuite
0.8
|
00001 /* 00002 * EventReceiver.cpp 00003 * 00004 * Created on: 16.02.2010 00005 * Author: morgenro 00006 */ 00007 00008 #include "core/EventReceiver.h" 00009 #include "core/EventSwitch.h" 00010 00011 namespace dtn 00012 { 00013 namespace core 00014 { 00015 EventReceiver::~EventReceiver() 00016 { }; 00017 00018 void EventReceiver::bindEvent(std::string eventName) 00019 { 00020 dtn::core::EventSwitch::registerEventReceiver(eventName, this); 00021 } 00022 00023 void EventReceiver::unbindEvent(std::string eventName) 00024 { 00025 dtn::core::EventSwitch::unregisterEventReceiver(eventName, this); 00026 } 00027 } 00028 }