ad_map_access
generated
include
ad
map
config
PointOfInterestValidInputRange.hpp
Go to the documentation of this file.
1
/*
2
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
3
*
4
* Copyright (C) 2018-2020 Intel Corporation
5
*
6
* SPDX-License-Identifier: MIT
7
*
8
* ----------------- END LICENSE BLOCK -----------------------------------
9
*/
10
18
#pragma once
19
20
#include <cmath>
21
#include <limits>
22
#include "
ad/map/config/PointOfInterest.hpp
"
23
#include "
ad/map/point/GeoPointValidInputRange.hpp
"
24
#include "spdlog/fmt/ostr.h"
25
#include "spdlog/spdlog.h"
26
37
inline
bool
withinValidInputRange
(::
ad::map::config::PointOfInterest
const
&input,
bool
const
logErrors =
true
)
38
{
39
// check for generic member input ranges
40
bool
inValidInputRange =
true
;
41
inValidInputRange =
withinValidInputRange
(input.
geoPoint
, logErrors);
42
if
(!inValidInputRange && logErrors)
43
{
44
spdlog::error(
"withinValidInputRange(::ad::map::config::PointOfInterest)>> {} has invalid member"
,
45
input);
// LCOV_EXCL_BR_LINE
46
}
47
48
return
inValidInputRange;
49
}
ad::map::config::PointOfInterest::geoPoint
::ad::map::point::GeoPoint geoPoint
Definition:
PointOfInterest.hpp:122
withinValidInputRange
bool withinValidInputRange(::ad::map::config::PointOfInterest const &input, bool const logErrors=true)
check if the given PointOfInterest is within valid input range
Definition:
PointOfInterestValidInputRange.hpp:37
ad::map::config::PointOfInterest
DataType PointOfInterest.
Definition:
PointOfInterest.hpp:45
PointOfInterest.hpp
GeoPointValidInputRange.hpp
Generated by
1.8.17