OTB  9.0.0
Orfeo Toolbox
otbAutoencoderModelFactory.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 otbAutoencoderModelFactory_h
21 #define otbAutoencoderModelFactory_h
22 
23 #include "itkObjectFactoryBase.h"
24 #include "itkImageIOBase.h"
25 
26 namespace otb
27 {
28 
36 template <class TInputValue, class TTargetValue, class NeuronType>
37 class ITK_EXPORT AutoencoderModelFactory : public itk::ObjectFactoryBase
38 {
39 public:
40 
43  typedef itk::ObjectFactoryBase Superclass;
44  typedef itk::SmartPointer<Self> Pointer;
45  typedef itk::SmartPointer<const Self> ConstPointer;
46 
48  const char* GetITKSourceVersion(void) const override;
49  const char* GetDescription(void) const override;
51 
53  itkFactorylessNewMacro(Self);
54 
56  itkTypeMacro(AutoencoderModelFactory, itk::ObjectFactoryBase);
57 
59  static void RegisterOneFactory(void)
60  {
62  itk::ObjectFactoryBase::RegisterFactory(AEFactory);
63  }
65 
66 protected:
68  ~AutoencoderModelFactory() override;
69 
70 private:
71  AutoencoderModelFactory(const Self&) = delete;
72  void operator=(const Self&) = delete;
73 };
74 
75 } // namespace otb
76 
77 #ifndef OTB_MANUAL_INSTANTIATION
79 #endif
80 
81 #endif
otb::AutoencoderModelFactory
Definition: otbAutoencoderModelFactory.h:37
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::AutoencoderModelFactory::Superclass
itk::ObjectFactoryBase Superclass
Definition: otbAutoencoderModelFactory.h:43
otb::AutoencoderModelFactory::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbAutoencoderModelFactory.h:44
otbAutoencoderModelFactory.hxx
otb::AutoencoderModelFactory::Self
AutoencoderModelFactory Self
Definition: otbAutoencoderModelFactory.h:42
otb::AutoencoderModelFactory::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbAutoencoderModelFactory.h:45
otb::AutoencoderModelFactory::New
static Pointer New(void)
otb::AutoencoderModelFactory::RegisterOneFactory
static void RegisterOneFactory(void)
Definition: otbAutoencoderModelFactory.h:59