1 #ifndef CLITKVOXIMAGEIOFACTORY_H
2 #define CLITKVOXIMAGEIOFACTORY_H
4 ===================================================================
5 * @file clitkVoxImageIOFactory.h
6 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7 * @date 03 Jul 2006 11:27:55
11 ===================================================================*/
14 #include "clitkVoxImageIO.h"
17 #include "itkImageIOBase.h"
18 #include "itkObjectFactoryBase.h"
19 #include "itkVersion.h"
23 //====================================================================
24 // Factory for reading Vox Image file format
25 class VoxImageIOFactory: public itk::ObjectFactoryBase
28 /** Standard class typedefs. */
29 typedef VoxImageIOFactory 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 "Vox ImageIO Factory, allows the loading of Vox images into insight";
43 /** Method for class instantiation. */
44 itkFactorylessNewMacro(Self);
46 /** Run-time type information (and related methods). */
47 itkTypeMacro(VoxImageIOFactory, ObjectFactoryBase);
49 /** Register one factory of this type */
50 static void RegisterOneFactory(void) {
51 ObjectFactoryBase::RegisterFactory( Self::New() );
56 ~VoxImageIOFactory() {};
57 typedef VoxImageIOFactory myProductType;
58 const myProductType* m_MyProduct;
61 VoxImageIOFactory(const Self&); //purposely not implemented
62 void operator=(const Self&); //purposely not implemented
67 #endif /* end #define CLITKVOXIMAGEIOFACTORY_H */