]> Creatis software - clitk.git/blob - common/clitkVoxImageIOFactory.h
removed headers
[clitk.git] / common / clitkVoxImageIOFactory.h
1 #ifndef CLITKVOXIMAGEIOFACTORY_H
2 #define CLITKVOXIMAGEIOFACTORY_H
3 /**
4  ===================================================================
5  * @file   clitkVoxImageIOFactory.h
6  * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7  * @date   03 Jul 2006 11:27:55
8
9  * @brief  
10
11  ===================================================================*/
12
13 // clitk include
14 #include "clitkVoxImageIO.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 Vox Image file format
25   class VoxImageIOFactory: public itk::ObjectFactoryBase
26   {
27   public:
28         /** Standard class typedefs. */
29         typedef VoxImageIOFactory              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 "Vox ImageIO Factory, allows the loading of Vox images into insight";
41         }
42         
43         /** Method for class instantiation. */
44         itkFactorylessNewMacro(Self);
45         
46         /** Run-time type information (and related methods). */
47         itkTypeMacro(VoxImageIOFactory, ObjectFactoryBase);
48         
49         /** Register one factory of this type  */
50         static void RegisterOneFactory(void) {
51           ObjectFactoryBase::RegisterFactory( Self::New() );
52         }       
53
54   protected:
55         VoxImageIOFactory();
56         ~VoxImageIOFactory() {};
57         typedef VoxImageIOFactory myProductType;
58         const myProductType* m_MyProduct;
59         
60   private:
61         VoxImageIOFactory(const Self&); //purposely not implemented
62         void operator=(const Self&); //purposely not implemented
63   };
64
65 } // end namespace
66
67 #endif /* end #define CLITKVOXIMAGEIOFACTORY_H */
68