00001 /* 00002 * GlobalEvent.h 00003 * 00004 * Created on: 30.10.2009 00005 * Author: morgenro 00006 */ 00007 00008 #include "config.h" 00009 #include "core/GlobalEvent.h" 00010 using namespace std; 00011 00012 namespace dtn 00013 { 00014 namespace core 00015 { 00016 GlobalEvent::GlobalEvent(const Action a) 00017 : _action(a) 00018 { 00019 } 00020 00021 GlobalEvent::~GlobalEvent() 00022 { 00023 } 00024 00025 GlobalEvent::Action GlobalEvent::getAction() const 00026 { 00027 return _action; 00028 } 00029 00030 const string GlobalEvent::getName() const 00031 { 00032 return GlobalEvent::className; 00033 } 00034 00035 void GlobalEvent::raise(const Action a) 00036 { 00037 // raise the new event 00038 raiseEvent( new GlobalEvent(a) ); 00039 } 00040 00041 string GlobalEvent::toString() const 00042 { 00043 return className; 00044 } 00045 00046 const string GlobalEvent::className = "GlobalEvent"; 00047 } 00048 }
1.7.1