]> Creatis software - clitk.git/blob - common/rtkHndImageIOFactory.h
Debug vvMainWinsow.ui
[clitk.git] / common / rtkHndImageIOFactory.h
1 /*=========================================================================
2  *
3  *  Copyright RTK Consortium
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at
8  *
9  *         http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  *=========================================================================*/
18
19 //#ifndef ITKHNDIMAGEIOFACTORY_H
20 //#define ITKHNDIMAGEIOFACTORY_H
21
22 #ifndef __rtkHndImageIOFactory_h
23 #define __rtkHndImageIOFactory_h
24
25 #include "rtkHndImageIO.h"
26
27 // itk include
28 #include <itkImageIOBase.h>
29 #include <itkObjectFactoryBase.h>
30 #include <itkVersion.h>
31
32 namespace rtk
33 {
34
35 /** \class HndImageIOFactory
36  * \brief ITK factory for Hnd file I/O.
37  *
38  * \author Simon Rit
39  */
40 class HndImageIOFactory : public itk::ObjectFactoryBase
41 {
42 public:
43   /** Standard class typedefs. */
44   typedef HndImageIOFactory             Self;
45   typedef itk::ObjectFactoryBase        Superclass;
46   typedef itk::SmartPointer<Self>       Pointer;
47   typedef itk::SmartPointer<const Self> ConstPointer;
48
49   /** Class methods used to interface with the registered factories. */
50   const char* GetITKSourceVersion(void) const {
51     return ITK_SOURCE_VERSION;
52   }
53
54   const char* GetDescription(void) const {
55     return "His ImageIO Factory, allows the loading of His images into insight";
56   }
57
58   /** Method for class instantiation. */
59   itkFactorylessNewMacro(Self);
60
61   /** Run-time type information (and related methods). */
62   itkTypeMacro(HndImageIOFactory, itk::ObjectFactoryBase);
63
64   /** Register one factory of this type  */
65   static void RegisterOneFactory(void) {
66     ObjectFactoryBase::RegisterFactory( Self::New() );
67   }
68
69 protected:
70   HndImageIOFactory();
71   ~HndImageIOFactory() {};
72   typedef HndImageIOFactory myProductType;
73   const myProductType* m_MyProduct;
74
75 private:
76   HndImageIOFactory(const Self&); //purposely not implemented
77   void operator=(const Self&);    //purposely not implemented
78
79 };
80
81 } // end namespace
82
83 #endif // __rtkHndImageIOFactory_h