#ifndef __cpPlugins__BaseObjects__Events__h__ #define __cpPlugins__BaseObjects__Events__h__ #include #include // ------------------------------------------------------------------------- #define cpPluginsEventsOpenMacro( name ) \ class name \ : public itk::AnyEvent \ { \ public: \ typedef name Self; \ typedef itk::AnyEvent Superclass; \ public: \ name( ) : Superclass( ) { } \ virtual ~name( ) { } \ const char* GetEventName( ) const \ { return( "cpPlugins::BaseObjects::Events::#name" ); } \ bool CheckEvent( const itk::EventObject* e ) const \ { return( dynamic_cast< const Self* >( e ) != NULL ); } \ itk::EventObject* MakeObject( ) const \ { return( new Self( ) ); } // ------------------------------------------------------------------------- #define cpPluginsEventsCloseMacro( name ) \ } namespace cpPlugins { namespace BaseObjects { namespace Events { /** */ cpPluginsEventsOpenMacro( Modified ) public: itk::ModifiedTimeType Time; long Span; cpPluginsEventsCloseMacro( Modified ); } // ecapseman } // ecapseman } // ecapseman #endif // __cpPlugins__BaseObjects__Events__h__ // eof - $RCSfile$