OTB  9.0.0
Orfeo Toolbox
otbGDALImageIOFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 
22 #ifndef otbGDALImageIOFactory_h
23 #define otbGDALImageIOFactory_h
24 
25 #include "itkObjectFactoryBase.h"
26 
27 #include "OTBIOGDALExport.h"
28 
29 namespace otb
30 {
36 class OTBIOGDAL_EXPORT GDALImageIOFactory : public itk::ObjectFactoryBase
37 {
38 public:
41  typedef itk::ObjectFactoryBase Superclass;
42  typedef itk::SmartPointer<Self> Pointer;
43  typedef itk::SmartPointer<const Self> ConstPointer;
44 
46  const char* GetITKSourceVersion(void) const override;
47  const char* GetDescription(void) const override;
49 
51  itkFactorylessNewMacro(Self);
53  {
54  return new GDALImageIOFactory;
55  }
57 
59  itkTypeMacro(GDALImageIOFactory, itk::ObjectFactoryBase);
60 
62  static void RegisterOneFactory(void)
63  {
65  itk::ObjectFactoryBase::RegisterFactory(GDALFactory);
66  }
68 
69 protected:
71  ~GDALImageIOFactory() override;
72 
73 private:
74  GDALImageIOFactory(const Self&) = delete;
75  void operator=(const Self&) = delete;
76 };
77 
78 } // end namespace otb
79 
80 #endif
otb::GDALImageIOFactory::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbGDALImageIOFactory.h:42
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::GDALImageIOFactory::Self
GDALImageIOFactory Self
Definition: otbGDALImageIOFactory.h:40
otb::GDALImageIOFactory::FactoryNew
static GDALImageIOFactory * FactoryNew()
Definition: otbGDALImageIOFactory.h:52
otb::GDALImageIOFactory::Superclass
itk::ObjectFactoryBase Superclass
Definition: otbGDALImageIOFactory.h:41
otb::GDALImageIOFactory::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbGDALImageIOFactory.h:43
otb::GDALImageIOFactory
Create an instance of GDALImageIO through the object factory.
Definition: otbGDALImageIOFactory.h:36
otb::GDALImageIOFactory::New
static Pointer New(void)
otb::GDALImageIOFactory::RegisterOneFactory
static void RegisterOneFactory(void)
Definition: otbGDALImageIOFactory.h:62