]> Creatis software - clitk.git/blobdiff - common/clitkGateAsciiImageIOFactory.h
read gate ascii file header
[clitk.git] / common / clitkGateAsciiImageIOFactory.h
index 3a3b4fe867714b4a5bc85019d9444cf46b3c980e..bae5ac3eceb60723d63d34b50f8df974b1b885af 100644 (file)
 #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<Self>        Pointer;
-       typedef itk::SmartPointer<const Self>  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<Self>        Pointer;
+           typedef itk::SmartPointer<const Self>  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