OTB  6.7.0
Orfeo Toolbox
otbGDALImageIOFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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:
44 
46  const char* GetITKSourceVersion(void) const override;
47  const char* GetDescription(void) const override;
49 
51  itkFactorylessNewMacro(Self);
54 
57 
59  static void RegisterOneFactory(void)
60  {
63  }
65 
66 protected:
68  ~GDALImageIOFactory() override;
69 
70 private:
71  GDALImageIOFactory(const Self &) = delete;
72  void operator =(const Self&) = delete;
73 
74 };
75 
76 } // end namespace otb
77 
78 #endif
itk::SmartPointer< Self > Pointer
static GDALImageIOFactory * FactoryNew()
itk::SmartPointer< const Self > ConstPointer
static void RegisterOneFactory(void)
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
itk::ObjectFactoryBase Superclass
static Pointer New(void)
Creation d'un instance d'un objet GDALImageIO utilisant les object factory.