Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkImageWriterFactory.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef IMAGEWRITERFACTORY_H_HEADER_INCLUDED
18 #define IMAGEWRITERFACTORY_H_HEADER_INCLUDED
19 
20 #include <MitkLegacyIOExports.h>
21 
22 #include "itkObjectFactoryBase.h"
23 #include "mitkBaseData.h"
24 
25 namespace mitk
26 {
30  class DEPRECATED() MITKLEGACYIO_EXPORT ImageWriterFactory : public itk::ObjectFactoryBase
31  {
32  public:
33  mitkClassMacroItkParent(mitk::ImageWriterFactory, itk::ObjectFactoryBase)
34 
35 
36  virtual const char *GetITKSourceVersion(void) const override;
37  virtual const char *GetDescription(void) const override;
38 
40  itkFactorylessNewMacro(Self);
41 
46  DEPRECATED(static void RegisterOneFactory(void))
47  {
48  static bool IsRegistered = false;
49  if (!IsRegistered)
50  {
52  ObjectFactoryBase::RegisterFactory(imageWriterFactory);
53  IsRegistered = true;
54  }
55  }
56 
57  protected:
60 
61  private:
62  ImageWriterFactory(const Self &); // purposely not implemented
63  void operator=(const Self &); // purposely not implemented
64  };
65 
66 } // end namespace mitk
67 
68 #endif
#define MITKLEGACYIO_EXPORT
itk::SmartPointer< Self > Pointer
static Pointer New()
DataCollection - Class to facilitate loading/accessing structured data.
static void RegisterOneFactory(void)
#define DEPRECATED(func)
Definition: mitkCommon.h:183
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53