00001 /* 00002 * TimeEvent.h 00003 * 00004 * Created on: 16.03.2009 00005 * Author: morgenro 00006 */ 00007 00008 #include "config.h" 00009 00010 #ifndef TIMEEVENT_H_ 00011 #define TIMEEVENT_H_ 00012 00013 00014 #include <string> 00015 #include "core/Event.h" 00016 00017 using namespace std; 00018 00019 namespace dtn 00020 { 00021 namespace core 00022 { 00023 enum TimeEventAction 00024 { 00025 TIME_SECOND_TICK = 0 00026 }; 00027 00028 class TimeEvent : public Event 00029 { 00030 public: 00031 TimeEvent(const size_t timestamp, const TimeEventAction action); 00032 ~TimeEvent(); 00033 00034 TimeEventAction getAction() const; 00035 size_t getTimestamp() const; 00036 const string getName() const; 00037 const EventType getType() const; 00038 00039 #ifdef DO_DEBUG_OUTPUT 00040 string toString(); 00041 #endif 00042 00043 static const string className; 00044 00045 private: 00046 const size_t m_timestamp; 00047 const TimeEventAction m_action; 00048 }; 00049 } 00050 } 00051 00052 #endif /* TIMEEVENT_H_ */
1.5.6