OTB  10.0.0
Orfeo Toolbox
otbConfigurationManager.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 
21 #ifndef _otbConfigurationManager_h
22 #define _otbConfigurationManager_h
23 
24 #include "itkVersion.h"
25 
26 #include <string>
27 #include <boost/cstdint.hpp>
28 #include "itkLoggerBase.h"
29 #include "OTBCommonExport.h"
30 
31 namespace otb
32 {
43 class OTBCommon_EXPORT ConfigurationManager
44 {
45 public:
46  using RAMValueType = std::uint64_t ;
47 
55  static std::string GetDEMDirectory();
56 
64  static std::string GetGeoidFile();
65 
76 
95  static itk::LoggerBaseEnums::PriorityLevel GetLoggerLevel();
96 
103  static int InitOpenMPThreads();
104 
105 private:
109  void operator=(const ConfigurationManager&) = delete;
110 };
111 }
112 
113 #endif
Retrieve configuration values from env var or default values.
static std::string GetGeoidFile()
static itk::LoggerBaseEnums::PriorityLevel GetLoggerLevel()
static int InitOpenMPThreads()
ConfigurationManager(const ConfigurationManager &)=delete
static std::string GetDEMDirectory()
static RAMValueType GetMaxRAMHint()
void operator=(const ConfigurationManager &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.