1 /*=========================================================================
3 * Copyright RTK Consortium
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
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
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.
17 *=========================================================================*/
19 //#ifndef ITKHNDIMAGEIOFACTORY_H
20 //#define ITKHNDIMAGEIOFACTORY_H
22 #ifndef __rtkHndImageIOFactory_h
23 #define __rtkHndImageIOFactory_h
25 #include "rtkHndImageIO.h"
28 #include <itkImageIOBase.h>
29 #include <itkObjectFactoryBase.h>
30 #include <itkVersion.h>
35 /** \class HndImageIOFactory
36 * \brief ITK factory for Hnd file I/O.
40 class HndImageIOFactory : public itk::ObjectFactoryBase
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;
49 /** Class methods used to interface with the registered factories. */
50 const char* GetITKSourceVersion(void) const ITK_OVERRIDE {
51 return ITK_SOURCE_VERSION;
54 const char* GetDescription(void) const ITK_OVERRIDE {
55 return "His ImageIO Factory, allows the loading of His images into insight";
58 /** Method for class instantiation. */
59 itkFactorylessNewMacro(Self);
61 /** Run-time type information (and related methods). */
62 itkTypeMacro(HndImageIOFactory, itk::ObjectFactoryBase);
64 /** Register one factory of this type */
65 static void RegisterOneFactory(void) {
66 ObjectFactoryBase::RegisterFactory( Self::New() );
71 ~HndImageIOFactory() {};
72 typedef HndImageIOFactory myProductType;
73 const myProductType* m_MyProduct;
76 HndImageIOFactory(const Self&); //purposely not implemented
77 void operator=(const Self&); //purposely not implemented
83 #endif // __rtkHndImageIOFactory_h