IBR-DTNSuite 0.6

daemon/src/core/Event.h

Go to the documentation of this file.
00001 /*
00002  * Event.h
00003  *
00004  *  Created on: 05.03.2009
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef EVENT_H_
00009 #define EVENT_H_
00010 
00011 #include "core/EventReceiver.h"
00012 
00013 namespace dtn
00014 {
00015         namespace core
00016         {
00017                 class Event
00018                 {
00019                 public:
00020                         virtual ~Event() = 0;
00021                         virtual const std::string getName() const = 0;
00022 
00023                         virtual std::string toString() const = 0;
00024 
00025                 protected:
00026                         static void raiseEvent(Event *evt);
00027                 };
00028         }
00029 }
00030 
00031 #endif /* EVENT_H_ */