00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _SST_STOPEVENT_H
00014 #define _SST_STOPEVENT_H
00015
00016 #include <sst/core/event.h>
00017
00018 namespace SST {
00019
00020 #define _STOP_DBG( fmt, args...) __DBG( DBG_STOP, StopEvent, fmt, ## args )
00021
00022 class StopEvent : public Event
00023 {
00024 public:
00025 StopEvent()
00026 {
00027 functor = new EventHandler< StopEvent, bool, Event* >( this, &StopEvent::handler );
00028 }
00029
00030 EventHandler< StopEvent, bool, Event* >* getFunctor() {
00031 return functor;
00032 }
00033
00034 private:
00035 EventHandler< StopEvent, bool, Event* >* functor;
00036
00037 bool handler( Event* e ) {
00038 _STOP_DBG("\n");
00039 return true;
00040 }
00041
00042 friend class boost::serialization::access;
00043 template<class Archive>
00044 void
00045 serialize(Archive & ar, const unsigned int version )
00046 {
00047 boost::serialization::base_object<Event>(*this);
00048 }
00049 };
00050
00051 }
00052
00053 #endif