/*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the copyright notices for more information. It is distributed under dual licence - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ===========================================================================**/ #ifndef __clitkEsrfHstImageIOFactory_h #define __clitkEsrfHstImageIOFactory_h #include "clitkEsrfHstImageIO.h" #include #include #include namespace clitk { //==================================================================== // Factory for reading Esrf Hst Image file format class EsrfHstImageIOFactory: public itk::ObjectFactoryBase { public: /** Standard class typedefs. */ typedef EsrfHstImageIOFactory 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 { return ITK_SOURCE_VERSION; } const char* GetDescription(void) const { return "Esrf Hst ImageIO Factory, allows the loading of Esrf Hst images into insight"; } /** Method for class instantiation. */ itkFactorylessNewMacro(Self); /** Run-time type information (and related methods). */ itkTypeMacro(EsrfHstImageIOFactory, ObjectFactoryBase); /** Register one factory of this type */ static void RegisterOneFactory(void) { ObjectFactoryBase::RegisterFactory( Self::New() ); } protected: EsrfHstImageIOFactory(); ~EsrfHstImageIOFactory() {}; typedef EsrfHstImageIOFactory myProductType; const myProductType* m_MyProduct; private: EsrfHstImageIOFactory(const Self&); //purposely not implemented void operator=(const Self&); //purposely not implemented }; } // end namespace #endif