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 __rtkHisImageIOFactory_h
20 #define __rtkHisImageIOFactory_h
22 #include "rtkHisImageIO.h"
25 #include <itkImageIOBase.h>
26 #include <itkObjectFactoryBase.h>
27 #include <itkVersion.h>
32 /** \class HisImageIOFactory
33 * \brief ITK factory for His file I/O.
37 class HisImageIOFactory : public itk::ObjectFactoryBase
40 /** Standard class typedefs. */
41 typedef HisImageIOFactory Self;
42 typedef itk::ObjectFactoryBase Superclass;
43 typedef itk::SmartPointer<Self> Pointer;
44 typedef itk::SmartPointer<const Self> ConstPointer;
46 /** Class methods used to interface with the registered factories. */
47 const char* GetITKSourceVersion(void) const {
48 return ITK_SOURCE_VERSION;
51 const char* GetDescription(void) const {
52 return "His ImageIO Factory, allows the loading of His images into insight";
55 /** Method for class instantiation. */
56 itkFactorylessNewMacro(Self);
58 /** Run-time type information (and related methods). */
59 itkTypeMacro(HisImageIOFactory, itk::ObjectFactoryBase);
61 /** Register one factory of this type */
62 static void RegisterOneFactory(void) {
63 ObjectFactoryBase::RegisterFactory( Self::New() );
68 ~HisImageIOFactory() {};
69 typedef HisImageIOFactory myProductType;
70 const myProductType* m_MyProduct;
73 HisImageIOFactory(const Self&); //purposely not implemented
74 void operator=(const Self&); //purposely not implemented
80 #endif /* end #define __rtkHisImageIOFactory_h */