00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __mitkObjFileIOFactory_h 00018 #define __mitkObjFileIOFactory_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObjectFactoryBase.h" 00025 #include "MitkExtExports.h" 00026 #include "mitkBaseData.h" 00027 00028 namespace mitk 00029 { 00030 //##Documentation 00031 //## @brief Create instances of ObjFileReader objects using an object factory. 00032 //## 00033 //## @ingroup IO 00034 class MitkExt_EXPORT ObjFileIOFactory : public itk::ObjectFactoryBase 00035 { 00036 public: 00038 typedef ObjFileIOFactory Self; 00039 typedef itk::ObjectFactoryBase Superclass; 00040 typedef itk::SmartPointer<Self> Pointer; 00041 typedef itk::SmartPointer<const Self> ConstPointer; 00042 00044 virtual const char* GetITKSourceVersion(void) const; 00045 virtual const char* GetDescription(void) const; 00046 00048 itkFactorylessNewMacro(Self); 00049 static ObjFileIOFactory* FactoryNew() { return new ObjFileIOFactory;} 00051 itkTypeMacro(ObjFileIOFactory, ObjectFactoryBase); 00052 00054 static void RegisterOneFactory(void) 00055 { 00056 ObjFileIOFactory::Pointer ObjFileIOFactory = ObjFileIOFactory::New(); 00057 ObjectFactoryBase::RegisterFactory(ObjFileIOFactory); 00058 } 00059 00060 protected: 00061 ObjFileIOFactory(); 00062 ~ObjFileIOFactory(); 00063 00064 private: 00065 ObjFileIOFactory(const Self&); //purposely not implemented 00066 void operator=(const Self&); //purposely not implemented 00067 00068 }; 00069 00070 00071 } // end namespace mitk 00072 00073 #endif