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 ===========================================================================**/
18 #ifndef CLITKHISIMAGEIOFACTORY_H
19 #define CLITKHISIMAGEIOFACTORY_H
21 ===================================================================
22 * @file clitkHisImageIOFactory.h
23 * @author Simon Rit <simon.rit@gmail.com>
28 ===================================================================*/
31 #include "clitkHisImageIO.h"
34 #include "itkImageIOBase.h"
35 #include "itkObjectFactoryBase.h"
36 #include "itkVersion.h"
40 //====================================================================
41 // Factory for reading His Image file format
42 class HisImageIOFactory: public itk::ObjectFactoryBase
45 /** Standard class typedefs. */
46 typedef HisImageIOFactory Self;
47 typedef itk::ObjectFactoryBase Superclass;
48 typedef itk::SmartPointer<Self> Pointer;
49 typedef itk::SmartPointer<const Self> ConstPointer;
51 /** Class methods used to interface with the registered factories. */
52 const char* GetITKSourceVersion(void) const {
53 return ITK_SOURCE_VERSION;
56 const char* GetDescription(void) const {
57 return "His ImageIO Factory, allows the loading of His images into insight";
60 /** Method for class instantiation. */
61 itkFactorylessNewMacro(Self);
63 /** Run-time type information (and related methods). */
64 itkTypeMacro(HisImageIOFactory, ObjectFactoryBase);
66 /** Register one factory of this type */
67 static void RegisterOneFactory(void) {
68 ObjectFactoryBase::RegisterFactory( Self::New() );
73 ~HisImageIOFactory() {};
74 typedef HisImageIOFactory myProductType;
75 const myProductType* m_MyProduct;
78 HisImageIOFactory(const Self&); //purposely not implemented
79 void operator=(const Self&); //purposely not implemented
84 #endif /* end #define CLITKHISIMAGEIOFACTORY_H */