OTB  9.0.0
Orfeo Toolbox
otbPCAModelFactory.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 #ifndef otbPCAModelFactory_h
21 #define otbPCAModelFactory_h
22 
23 #include "itkObjectFactoryBase.h"
24 #include "itkImageIOBase.h"
25 
26 namespace otb
27 {
28 
35 template <class TInputValue, class TTargetValue>
36 class ITK_EXPORT PCAModelFactory : 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(PCAModelFactory, itk::ObjectFactoryBase);
55 
57  static void RegisterOneFactory(void)
58  {
59  Pointer PCAFactory = PCAModelFactory::New();
60  itk::ObjectFactoryBase::RegisterFactory(PCAFactory);
61  }
63 
64 protected:
66  ~PCAModelFactory() override;
67 
68 private:
69  PCAModelFactory(const Self&) = delete;
70  void operator=(const Self&) = delete;
71 };
72 
73 } // namespace otb
74 
75 #ifndef OTB_MANUAL_INSTANTIATION
76 #include "otbPCAModelFactory.hxx"
77 #endif
78 
79 #endif
otbPCAModelFactory.hxx
otb::PCAModelFactory::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPCAModelFactory.h:42
otb::PCAModelFactory::Self
PCAModelFactory Self
Definition: otbPCAModelFactory.h:40
otb::PCAModelFactory
Definition: otbPCAModelFactory.h:36
otb::PCAModelFactory::New
static Pointer New(void)
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PCAModelFactory::RegisterOneFactory
static void RegisterOneFactory(void)
Definition: otbPCAModelFactory.h:57
otb::PCAModelFactory::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPCAModelFactory.h:43
otb::PCAModelFactory::Superclass
itk::ObjectFactoryBase Superclass
Definition: otbPCAModelFactory.h:41