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 __rtkXRadImageIOFactory_h
20 #define __rtkXRadImageIOFactory_h
22 #include "rtkXRadImageIO.h"
23 #include <itkImageIOBase.h>
24 #include <itkObjectFactoryBase.h>
25 #include <itkVersion.h>
29 /** \class XRadImageIOFactory
30 * \brief ITK factory for XRad file I/O.
34 class XRadImageIOFactory : public itk::ObjectFactoryBase
37 /** Standard class typedefs. */
38 typedef XRadImageIOFactory Self;
39 typedef itk::ObjectFactoryBase Superclass;
40 typedef itk::SmartPointer<Self> Pointer;
41 typedef itk::SmartPointer<const Self> ConstPointer;
43 /** Class methods used to interface with the registered factories. */
44 const char* GetITKSourceVersion(void) const ITK_OVERRIDE {
45 return ITK_SOURCE_VERSION;
48 const char* GetDescription(void) const ITK_OVERRIDE {
49 return "XRad ImageIO Factory, allows the loading of XRad images into insight";
52 /** Method for class instantiation. */
53 itkFactorylessNewMacro(Self);
55 /** Run-time type information (and related methods). */
56 itkTypeMacro(XRadImageIOFactory, ObjectFactoryBase);
58 /** Register one factory of this type */
59 static void RegisterOneFactory(void) {
60 ObjectFactoryBase::RegisterFactory( Self::New() );
65 ~XRadImageIOFactory() {}
67 typedef XRadImageIOFactory myProductType;
68 const myProductType* m_MyProduct;
70 XRadImageIOFactory(const Self&); //purposely not implemented
71 void operator=(const Self&); //purposely not implemented