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/geometry/HeadingRangeValidInputRange.hpp" 23 : : #include "ad/rss/state/UnstructuredConstellationResponseValidInputRange.hpp" 24 : : #include "ad/rss/state/UnstructuredConstellationRssState.hpp" 25 : : #include "ad/rss/state/UnstructuredConstellationStateInformationValidInputRange.hpp" 26 : : #include "ad/rss/world/LongitudinalRssAccelerationValuesValidInputRange.hpp" 27 : : #include "spdlog/fmt/ostr.h" 28 : : #include "spdlog/spdlog.h" 29 : : 30 : : /*! 31 : : * \brief check if the given UnstructuredConstellationRssState is within valid input range 32 : : * 33 : : * \param[in] input the UnstructuredConstellationRssState as an input value 34 : : * \param[in] logErrors enables error logging 35 : : * 36 : : * \returns \c true if UnstructuredConstellationRssState is considered to be within the specified input range 37 : : * 38 : : * \note the specified input range is defined by the ranges of all members 39 : : */ 40 : 5564 : inline bool withinValidInputRange(::ad::rss::state::UnstructuredConstellationRssState const &input, 41 : : bool const logErrors = true) 42 : : { 43 : : // check for generic member input ranges 44 : 5564 : bool inValidInputRange = true; 45 : 5564 : inValidInputRange = withinValidInputRange(input.response, logErrors) 46 [ + + ]: 5560 : && withinValidInputRange(input.heading_range, logErrors) 47 [ + + ]: 5558 : && withinValidInputRange(input.rss_state_information, logErrors) 48 [ + + + + ]: 11124 : && withinValidInputRange(input.alpha_lon, logErrors); 49 [ + + + - ]: 5564 : if (!inValidInputRange && logErrors) 50 : : { 51 [ + - ]: 10 : spdlog::error("withinValidInputRange(::ad::rss::state::UnstructuredConstellationRssState)>> {} has invalid member", 52 : : input); // LCOV_EXCL_BR_LINE 53 : : } 54 : : 55 : 5564 : return inValidInputRange; 56 : : }