OTB
9.0.0
Orfeo Toolbox
Modules
Core
Common
include
otbUtils.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 otbUtils_h
22
#define otbUtils_h
23
24
#include <sstream>
25
#include <string>
26
27
#include "itkMacro.h"
28
#include "OTBCommonExport.h"
29
30
namespace
otb
31
{
32
41
namespace
Utils
42
{
44
bool
OTBCommon_EXPORT
IsLonLatValid
(
double
lon,
double
lat);
45
46
template
<
class
T>
47
inline
std::string
ConvertToString
(
const
T& v)
48
{
49
std::stringstream s;
50
s << v;
51
return
s.str();
52
}
53
55
void
OTBCommon_EXPORT
PrintNothing
(
const
char
* s);
56
57
extern
OTBCommon_EXPORT
bool
const
TrueConstant
;
58
59
extern
OTBCommon_EXPORT
bool
const
FalseConstant
;
60
}
61
62
}
// namespace otb
63
64
#endif
otb::Utils::PrintNothing
void OTBCommon_EXPORT PrintNothing(const char *s)
otb::Utils::FalseConstant
OTBCommon_EXPORT const bool FalseConstant
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition:
otbJoinContainer.h:32
otb::Utils::ConvertToString
std::string ConvertToString(const T &v)
Definition:
otbUtils.h:47
Utils
Utils operations.
otb::Utils::TrueConstant
OTBCommon_EXPORT const bool TrueConstant
otb::Utils::IsLonLatValid
bool OTBCommon_EXPORT IsLonLatValid(double lon, double lat)
Generated at Wed Feb 28 2024 15:24:23 for
OTB
with
1.8.17