Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef IMAGEWRITERFACTORY_H_HEADER_INCLUDED
00019 #define IMAGEWRITERFACTORY_H_HEADER_INCLUDED
00020
00021 #include "itkObjectFactoryBase.h"
00022 #include "mitkBaseData.h"
00023
00024 namespace mitk
00025 {
00026
00027 class MITK_CORE_EXPORT ImageWriterFactory : public itk::ObjectFactoryBase
00028 {
00029 public:
00030
00031 mitkClassMacro( mitk::ImageWriterFactory, itk::ObjectFactoryBase )
00032
00033
00034 virtual const char* GetITKSourceVersion(void) const;
00035 virtual const char* GetDescription(void) const;
00036
00038 itkFactorylessNewMacro(Self);
00039
00041 static void RegisterOneFactory(void)
00042 {
00043 static bool IsRegistered = false;
00044 if ( !IsRegistered )
00045 {
00046 ImageWriterFactory::Pointer imageWriterFactory = ImageWriterFactory::New();
00047 ObjectFactoryBase::RegisterFactory( imageWriterFactory );
00048 IsRegistered = true;
00049 }
00050 }
00051
00052 protected:
00053 ImageWriterFactory();
00054 ~ImageWriterFactory();
00055
00056 private:
00057 ImageWriterFactory(const Self&);
00058 void operator=(const Self&);
00059
00060 };
00061
00062 }
00063
00064 #endif