/*========================================================================= * * Copyright RTK Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef __rtkEdfImageIOFactory_h #define __rtkEdfImageIOFactory_h #include "rtkEdfImageIO.h" #include #include #include namespace rtk { /** \class EdfImageIOFactory * \brief ITK factory for Edf file I/O. * * \author Simon Rit */ class EdfImageIOFactory : public itk::ObjectFactoryBase { public: /** Standard class typedefs. */ typedef EdfImageIOFactory Self; typedef itk::ObjectFactoryBase Superclass; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; /** Class methods used to interface with the registered factories. */ const char* GetITKSourceVersion(void) const ITK_OVERRIDE { return ITK_SOURCE_VERSION; } const char* GetDescription(void) const ITK_OVERRIDE { return "Edf ImageIO Factory, allows the loading of Edf images into insight"; } /** Method for class instantiation. */ itkFactorylessNewMacro(Self); /** Run-time type information (and related methods). */ itkTypeMacro(EdfImageIOFactory, ObjectFactoryBase); /** Register one factory of this type */ static void RegisterOneFactory(void) { ObjectFactoryBase::RegisterFactory( Self::New() ); } protected: EdfImageIOFactory(); ~EdfImageIOFactory() {} typedef EdfImageIOFactory myProductType; const myProductType* m_MyProduct; private: EdfImageIOFactory(const Self&); //purposely not implemented void operator=(const Self&); //purposely not implemented }; } // end namespace #endif