X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkGateAsciiImageIOFactory.h;fp=common%2FclitkGateAsciiImageIOFactory.h;h=bae5ac3eceb60723d63d34b50f8df974b1b885af;hb=557c580ad207bbb5ee3772020fce9af9ed6c48f9;hp=3a3b4fe867714b4a5bc85019d9444cf46b3c980e;hpb=fef47246b1a56199aa6d3d57129e5b1ae8b386f1;p=clitk.git diff --git a/common/clitkGateAsciiImageIOFactory.h b/common/clitkGateAsciiImageIOFactory.h index 3a3b4fe..bae5ac3 100644 --- a/common/clitkGateAsciiImageIOFactory.h +++ b/common/clitkGateAsciiImageIOFactory.h @@ -27,48 +27,46 @@ #include "itkVersion.h" namespace clitk { - - //==================================================================== - // Factory for reading GateAscii Image file format - class GateAsciiImageIOFactory: public itk::ObjectFactoryBase - { - public: - /** Standard class typedefs. */ - typedef GateAsciiImageIOFactory Self; - typedef itk::ObjectFactoryBase Superclass; - typedef itk::SmartPointer Pointer; - typedef itk::SmartPointer ConstPointer; - - /** Class methods used to interface with the registered factories. */ - const char* GetITKSourceVersion(void) const { - return ITK_SOURCE_VERSION; - } - - const char* GetDescription(void) const { - return "GateAscii ImageIO Factory, allows the loading of gate ascii images into insight"; - } - - /** Method for class instantiation. */ - itkFactorylessNewMacro(Self); - - /** Run-time type information (and related methods). */ - itkTypeMacro(GateAsciiImageIOFactory, ObjectFactoryBase); - - /** Register one factory of this type */ - static void RegisterOneFactory(void) { - ObjectFactoryBase::RegisterFactory( Self::New() ); - } - - protected: - GateAsciiImageIOFactory(); - ~GateAsciiImageIOFactory() {}; - typedef GateAsciiImageIOFactory myProductType; - const myProductType* m_MyProduct; - - private: - GateAsciiImageIOFactory(const Self&); //purposely not implemented - void operator=(const Self&); //purposely not implemented - }; + + //==================================================================== + // Factory for reading GateAscii Image file format + class GateAsciiImageIOFactory: public itk::ObjectFactoryBase + { + public: + /** Standard class typedefs. */ + typedef GateAsciiImageIOFactory Self; + typedef itk::ObjectFactoryBase Superclass; + typedef itk::SmartPointer Pointer; + typedef itk::SmartPointer ConstPointer; + + /** Class methods used to interface with the registered factories. */ + const char* GetITKSourceVersion(void) const { + return ITK_SOURCE_VERSION; + } + + const char* GetDescription(void) const { + return "GateAscii ImageIO Factory, allows the loading of gate ascii images into insight"; + } + + /** Method for class instantiation. */ + itkFactorylessNewMacro(Self); + + /** Run-time type information (and related methods). */ + itkTypeMacro(GateAsciiImageIOFactory, ObjectFactoryBase); + + /** Register one factory of this type */ + static void RegisterOneFactory(void) { + ObjectFactoryBase::RegisterFactory( Self::New() ); + } + + protected: + GateAsciiImageIOFactory(); + ~GateAsciiImageIOFactory() {}; + + private: + GateAsciiImageIOFactory(const Self&); //purposely not implemented + void operator=(const Self&); //purposely not implemented + }; } // end namespace