Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
otbMWImageIOFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbMWImageIOFactory_h
19 #define __otbMWImageIOFactory_h
20 
21 #include "itkObjectFactoryBase.h"
22 #include "otbImageIOBase.h"
23 
24 namespace otb
25 {
29 class ITK_EXPORT MWImageIOFactory : public itk::ObjectFactoryBase
30 {
31 public:
37 
39  virtual const char* GetITKSourceVersion(void) const;
40  virtual const char* GetDescription(void) const;
41 
43  itkFactorylessNewMacro(Self);
44  static MWImageIOFactory * FactoryNew() { return new MWImageIOFactory; }
45 
48 
50  static void RegisterOneFactory(void)
51  {
53  itk::ObjectFactoryBase::RegisterFactory(MWFactory);
54  }
55 
56 protected:
58  virtual ~MWImageIOFactory();
59 
60 private:
61  MWImageIOFactory(const Self &); //purposely not implemented
62  void operator =(const Self&); //purposely not implemented
63 
64 };
65 
66 } // end namespace otb
67 
68 #endif
itk::SmartPointer< Self > Pointer
itk::ObjectFactoryBase Superclass
static MWImageIOFactory * FactoryNew()
itk::SmartPointer< const Self > ConstPointer
Creation d'un instance d'un objet LUMImageIO utilisant les object factory.
static void RegisterOneFactory(void)
static Pointer New(void)