1 #ifndef CLITKHISIMAGEIOFACTORY_H
2 #define CLITKHISIMAGEIOFACTORY_H
4 ===================================================================
5 * @file clitkHisImageIOFactory.h
6 * @author Simon Rit <simon.rit@gmail.com>
11 ===================================================================*/
14 #include "clitkHisImageIO.h"
17 #include "itkImageIOBase.h"
18 #include "itkObjectFactoryBase.h"
19 #include "itkVersion.h"
23 //====================================================================
24 // Factory for reading His Image file format
25 class HisImageIOFactory: public itk::ObjectFactoryBase
28 /** Standard class typedefs. */
29 typedef HisImageIOFactory Self;
30 typedef itk::ObjectFactoryBase Superclass;
31 typedef itk::SmartPointer<Self> Pointer;
32 typedef itk::SmartPointer<const Self> ConstPointer;
34 /** Class methods used to interface with the registered factories. */
35 const char* GetITKSourceVersion(void) const {
36 return ITK_SOURCE_VERSION;
39 const char* GetDescription(void) const {
40 return "His ImageIO Factory, allows the loading of His images into insight";
43 /** Method for class instantiation. */
44 itkFactorylessNewMacro(Self);
46 /** Run-time type information (and related methods). */
47 itkTypeMacro(HisImageIOFactory, ObjectFactoryBase);
49 /** Register one factory of this type */
50 static void RegisterOneFactory(void) {
51 ObjectFactoryBase::RegisterFactory( Self::New() );
56 ~HisImageIOFactory() {};
57 typedef HisImageIOFactory myProductType;
58 const myProductType* m_MyProduct;
61 HisImageIOFactory(const Self&); //purposely not implemented
62 void operator=(const Self&); //purposely not implemented
67 #endif /* end #define CLITKHISIMAGEIOFACTORY_H */