ad_map_access
generated
include
ad
map
match
ObjectReferencePointsValidInputRange.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/match/ObjectReferencePoints.hpp
"
23
#include "spdlog/fmt/ostr.h"
24
#include "spdlog/spdlog.h"
25
36
inline
bool
withinValidInputRange
(::
ad::map::match::ObjectReferencePoints
const
&input,
bool
const
logErrors =
true
)
37
{
38
bool
inValidInputRange = (input == ::ad::map::match::ObjectReferencePoints::FrontLeft)
39
|| (input == ::
ad::map::match::ObjectReferencePoints::FrontRight
)
40
|| (input == ::ad::map::match::ObjectReferencePoints::RearLeft)
41
|| (input == ::
ad::map::match::ObjectReferencePoints::RearRight
)
42
|| (input == ::ad::map::match::ObjectReferencePoints::Center)
43
|| (input == ::
ad::map::match::ObjectReferencePoints::NumPoints
);
44
if
(!inValidInputRange && logErrors)
45
{
46
spdlog::error(
"withinValidInputRange(::ad::map::match::ObjectReferencePoints)>> {}, raw value: {} "
,
47
input,
48
static_cast<
int32_t
>
(input));
// LCOV_EXCL_BR_LINE
49
}
50
return
inValidInputRange;
51
}
withinValidInputRange
bool withinValidInputRange(::ad::map::match::ObjectReferencePoints const &input, bool const logErrors=true)
check if the given ObjectReferencePoints is within valid input range
Definition:
ObjectReferencePointsValidInputRange.hpp:36
ObjectReferencePoints.hpp
ad::map::match::ObjectReferencePoints::NumPoints
@ NumPoints
ad::map::match::ObjectReferencePoints::RearRight
@ RearRight
ad::map::match::ObjectReferencePoints::FrontRight
@ FrontRight
ad::map::match::ObjectReferencePoints
ObjectReferencePoints
DataType ObjectReferencePoints.
Definition:
ObjectReferencePoints.hpp:43
Generated by
1.8.17