1 #ifndef CLITKVFIMAGEIOFACTORY_H
2 #define CLITKVFIMAGEIOFACTORY_H
5 * @file clitkVfImageIOFactory.h
6 * @author Simon Rit <simon.rit@gmail.com>
7 * @date Mon Sep 18 10:14:12 2006
15 #include "clitkVfImageIO.h"
18 #include "itkImageIOBase.h"
19 #include "itkObjectFactoryBase.h"
20 #include "itkVersion.h"
24 //====================================================================
25 // Factory for reading Vf Image file format
26 class VfImageIOFactory: public itk::ObjectFactoryBase
29 /** Standard class typedefs. */
30 typedef VfImageIOFactory Self;
31 typedef itk::ObjectFactoryBase Superclass;
32 typedef itk::SmartPointer<Self> Pointer;
33 typedef itk::SmartPointer<const Self> ConstPointer;
35 /** Class methods used to interface with the registered factories. */
36 const char* GetITKSourceVersion(void) const {
37 return ITK_SOURCE_VERSION;
40 const char* GetDescription(void) const {
41 return "Vf ImageIO Factory, allows the loading of Vf images into insight";
44 /** Method for class instantiation. */
45 itkFactorylessNewMacro(Self);
47 /** Run-time type information (and related methods). */
48 itkTypeMacro(VfImageIOFactory, ObjectFactoryBase);
50 /** Register one factory of this type */
51 static void RegisterOneFactory(void) {
52 ObjectFactoryBase::RegisterFactory( Self::New() );
57 ~VfImageIOFactory() {};
58 typedef VfImageIOFactory myProductType;
59 const myProductType* m_MyProduct;
62 VfImageIOFactory(const Self&); //purposely not implemented
63 void operator=(const Self&); //purposely not implemented
68 #endif /* end #define CLITKVFIMAGEIOFACTORY_H */