00001
00002
00003
00004
00005
00006
00007
00008 #ifndef EVENT_H_
00009 #define EVENT_H_
00010
00011 #include <string>
00012
00013 using namespace std;
00014
00015 namespace dtn
00016 {
00017 namespace core
00018 {
00019 enum EventType {
00020 EVENT_ASYNC = 0,
00021 EVENT_SYNC = 1
00022 };
00023
00024 class Event
00025 {
00026 public:
00027 virtual ~Event() {};
00028 virtual const string getName() const = 0;
00029 virtual const EventType getType() const = 0;
00030
00031 #ifdef DO_DEBUG_OUTPUT
00032 virtual string toString() = 0;
00033 #endif
00034 };
00035 }
00036 }
00037
00038 #endif