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 __mitkPicFileIOFactory_h 00018 #define __mitkPicFileIOFactory_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObjectFactoryBase.h" 00025 #include "mitkBaseData.h" 00026 00027 namespace mitk 00028 { 00029 //##Documentation 00030 //## @brief Create instances of PicFileReader objects using an object factory. 00031 //## 00032 //## @ingroup IO 00033 class MITK_CORE_EXPORT PicFileIOFactory : public itk::ObjectFactoryBase 00034 { 00035 public: 00037 typedef PicFileIOFactory Self; 00038 typedef itk::ObjectFactoryBase Superclass; 00039 typedef itk::SmartPointer<Self> Pointer; 00040 typedef itk::SmartPointer<const Self> ConstPointer; 00041 00043 virtual const char* GetITKSourceVersion(void) const; 00044 virtual const char* GetDescription(void) const; 00045 00047 itkFactorylessNewMacro(Self); 00048 static PicFileIOFactory* FactoryNew() { return new PicFileIOFactory;} 00050 itkTypeMacro(PicFileIOFactory, ObjectFactoryBase); 00051 00053 static void RegisterOneFactory(void) 00054 { 00055 PicFileIOFactory::Pointer PicFileIOFactory = PicFileIOFactory::New(); 00056 ObjectFactoryBase::RegisterFactory(PicFileIOFactory); 00057 } 00058 00059 protected: 00060 PicFileIOFactory(); 00061 ~PicFileIOFactory(); 00062 00063 private: 00064 PicFileIOFactory(const Self&); //purposely not implemented 00065 void operator=(const Self&); //purposely not implemented 00066 00067 }; 00068 00069 00070 } // end namespace mitk 00071 00072 #endif