]> Creatis software - clitk.git/blob - common/clitkHisImageIOFactory.h
removed headers
[clitk.git] / common / clitkHisImageIOFactory.h
1 #ifndef CLITKHISIMAGEIOFACTORY_H
2 #define CLITKHISIMAGEIOFACTORY_H
3 /**
4  ===================================================================
5  * @file   clitkHisImageIOFactory.h
6  * @author Simon Rit <simon.rit@gmail.com>
7  * @date   16 Feb 2010
8
9  * @brief  
10
11  ===================================================================*/
12
13 // clitk include
14 #include "clitkHisImageIO.h"
15
16 // itk include
17 #include "itkImageIOBase.h"
18 #include "itkObjectFactoryBase.h"
19 #include "itkVersion.h"
20
21 namespace clitk {
22   
23   //====================================================================
24   // Factory for reading His Image file format
25   class HisImageIOFactory: public itk::ObjectFactoryBase
26   {
27   public:
28         /** Standard class typedefs. */
29         typedef HisImageIOFactory              Self;
30         typedef itk::ObjectFactoryBase         Superclass;
31         typedef itk::SmartPointer<Self>        Pointer;
32         typedef itk::SmartPointer<const Self>  ConstPointer;
33         
34         /** Class methods used to interface with the registered factories. */
35         const char* GetITKSourceVersion(void) const {
36           return ITK_SOURCE_VERSION;
37         }
38         
39         const char* GetDescription(void) const {
40           return "His ImageIO Factory, allows the loading of His images into insight";
41         }
42         
43         /** Method for class instantiation. */
44         itkFactorylessNewMacro(Self);
45         
46         /** Run-time type information (and related methods). */
47         itkTypeMacro(HisImageIOFactory, ObjectFactoryBase);
48         
49         /** Register one factory of this type  */
50         static void RegisterOneFactory(void) {
51           ObjectFactoryBase::RegisterFactory( Self::New() );
52         }       
53
54   protected:
55         HisImageIOFactory();
56         ~HisImageIOFactory() {};
57         typedef HisImageIOFactory myProductType;
58         const myProductType* m_MyProduct;
59         
60   private:
61         HisImageIOFactory(const Self&); //purposely not implemented
62         void operator=(const Self&); //purposely not implemented
63   };
64
65 } // end namespace
66
67 #endif /* end #define CLITKHISIMAGEIOFACTORY_H */
68