OTB  9.0.0
Orfeo Toolbox
otbConfigurationManager.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 
21 #ifndef _otbConfigurationManager_h
22 #define _otbConfigurationManager_h
23 
24 #include "itkVersion.h"
25 
26 #if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 8)
27 #include "itksys/FundamentalType.h"
28 #else
29 #include "itk_kwiml.h"
30 #endif
31 
32 #include <string>
33 #include <boost/cstdint.hpp>
34 #include "itkLoggerBase.h"
35 #include "OTBCommonExport.h"
36 
37 namespace otb
38 {
49 class OTBCommon_EXPORT ConfigurationManager
50 {
51 public:
52 #if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 8)
53  typedef ::itksysFundamentalType_UInt64 RAMValueType;
54 #else
55  typedef KWIML_INT_uint64_t RAMValueType;
56 #endif
57 
65  static std::string GetDEMDirectory();
66 
74  static std::string GetGeoidFile();
75 
85  static RAMValueType GetMaxRAMHint();
86 
105  static itk::LoggerBase::PriorityLevelType GetLoggerLevel();
106 
113  static int InitOpenMPThreads();
114 
115 private:
116  ConfigurationManager() = delete;
117  ~ConfigurationManager() = delete;
119  void operator=(const ConfigurationManager&) = delete;
120 };
121 }
122 
123 #endif
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ConfigurationManager
Retrieve configuration values from env var or default values.
Definition: otbConfigurationManager.h:49
otb::ConfigurationManager::RAMValueType
::itksysFundamentalType_UInt64 RAMValueType
Definition: otbConfigurationManager.h:53