Branch data Line data Source code
1 : : /* 2 : : * ----------------- BEGIN LICENSE BLOCK --------------------------------- 3 : : * 4 : : * Copyright (C) 2018-2022 Intel Corporation 5 : : * 6 : : * SPDX-License-Identifier: LGPL-2.1-only 7 : : * 8 : : * ----------------- END LICENSE BLOCK ----------------------------------- 9 : : */ 10 : : 11 : : /** 12 : : * Generated file 13 : : * @file 14 : : * 15 : : * Generator Version : 11.0.0-2046 16 : : */ 17 : : 18 : : #pragma once 19 : : 20 : : #include <cmath> 21 : : #include <limits> 22 : : #include "ad/physics/AngleValidInputRange.hpp" 23 : : #include "ad/rss/state/UnstructuredConstellationStateInformation.hpp" 24 : : #include "spdlog/fmt/ostr.h" 25 : : #include "spdlog/spdlog.h" 26 : : 27 : : /*! 28 : : * \brief check if the given UnstructuredConstellationStateInformation is within valid input range 29 : : * 30 : : * \param[in] input the UnstructuredConstellationStateInformation as an input value 31 : : * \param[in] logErrors enables error logging 32 : : * 33 : : * \returns \c true if UnstructuredConstellationStateInformation is considered to be within the specified input range 34 : : * 35 : : * \note the specified input range is defined by the ranges of all members 36 : : */ 37 : 9421 : inline bool withinValidInputRange(::ad::rss::state::UnstructuredConstellationStateInformation const &input, 38 : : bool const logErrors = true) 39 : : { 40 : : // check for generic member input ranges 41 : 9421 : bool inValidInputRange = true; 42 : 9421 : inValidInputRange = withinValidInputRange(input.considered_drive_away_steering_angle, logErrors); 43 [ + + + - ]: 9421 : if (!inValidInputRange && logErrors) 44 : : { 45 [ + - ]: 7 : spdlog::error( 46 : : "withinValidInputRange(::ad::rss::state::UnstructuredConstellationStateInformation)>> {} has invalid member", 47 : : input); // LCOV_EXCL_BR_LINE 48 : : } 49 : : 50 : 9421 : return inValidInputRange; 51 : : }