1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 #ifndef __clitkEsrfHstImageIOFactory_h
20 #define __clitkEsrfHstImageIOFactory_h
22 #include "clitkEsrfHstImageIO.h"
23 #include <itkImageIOBase.h>
24 #include <itkObjectFactoryBase.h>
25 #include <itkVersion.h>
27 #include "clitkCommon.h"
32 //====================================================================
33 // Factory for reading Esrf Hst Image file format
34 class EsrfHstImageIOFactory: public itk::ObjectFactoryBase
37 /** Standard class typedefs. */
38 typedef EsrfHstImageIOFactory 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 "Esrf Hst ImageIO Factory, allows the loading of Esrf Hst images into insight";
52 /** Method for class instantiation. */
53 itkFactorylessNewMacro(Self);
55 /** Run-time type information (and related methods). */
56 itkTypeMacro(EsrfHstImageIOFactory, ObjectFactoryBase);
58 /** Register one factory of this type */
59 static void RegisterOneFactory(void) {
60 ObjectFactoryBase::RegisterFactory( Self::New() );
64 EsrfHstImageIOFactory();
65 ~EsrfHstImageIOFactory() {};
66 typedef EsrfHstImageIOFactory myProductType;
67 const myProductType* m_MyProduct;
70 EsrfHstImageIOFactory(const Self&); //purposely not implemented
71 void operator=(const Self&); //purposely not implemented