OTB  10.0.0
Orfeo Toolbox
otbSOMModelFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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 #ifndef otbSOMModelFactory_h
21 #define otbSOMModelFactory_h
22 
23 #include "itkObjectFactoryBase.h"
24 #include "itkImageIOBase.h"
25 
26 namespace otb
27 {
28 
35 template <class TInputValue, class TTargetValue, unsigned int MapDimension>
36 class ITK_EXPORT SOMModelFactory : 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);
52 
54  itkTypeMacro(SOMModelFactory, itk::ObjectFactoryBase);
55 
57  static void RegisterOneFactory(void)
58  {
59  Pointer SOMFactory = SOMModelFactory::New();
60  itk::ObjectFactoryBase::RegisterFactory(SOMFactory);
61  }
63 
64 protected:
66  ~SOMModelFactory() override;
67 
68 private:
69  SOMModelFactory(const Self&) = delete;
70  void operator=(const Self&) = delete;
71 };
72 
73 } // namespace otb
74 
75 #ifndef OTB_MANUAL_INSTANTIATION
76 #include "otbSOMModelFactory.hxx"
77 #endif
78 
79 #endif
static void RegisterOneFactory(void)
void operator=(const Self &)=delete
SOMModelFactory(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
itk::ObjectFactoryBase Superclass
static Pointer New(void)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.