1 #ifndef __cpPlugins__BaseObjects__Events__h__
2 #define __cpPlugins__BaseObjects__Events__h__
4 #include <cpPlugins/Config.h>
5 #include <itkEventObject.h>
7 // -------------------------------------------------------------------------
8 #define cpPluginsEventsOpenMacro( name ) \
10 : public itk::AnyEvent \
14 typedef itk::AnyEvent Superclass; \
16 name( ) : Superclass( ) { } \
17 virtual ~name( ) { } \
18 const char* GetEventName( ) const \
19 { return( "cpPlugins::BaseObjects::Events::#name" ); } \
20 bool CheckEvent( const itk::EventObject* e ) const \
21 { return( dynamic_cast< const Self* >( e ) != NULL ); } \
22 itk::EventObject* MakeObject( ) const \
23 { return( new Self( ) ); }
25 // -------------------------------------------------------------------------
26 #define cpPluginsEventsCloseMacro( name ) \
37 cpPluginsEventsOpenMacro( Modified )
39 itk::ModifiedTimeType Time;
41 cpPluginsEventsCloseMacro( Modified );
49 #endif // __cpPlugins__BaseObjects__Events__h__