FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
rotation_warning_utils.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// Copyright (c) 2026-present FERS Contributors (see AUTHORS.md).
4//
5// See the GNU GPLv2 LICENSE file in the FERS project root for more information.
6
7#pragma once
8
9#include <string>
10#include <string_view>
11#include <vector>
12
13#include "core/config.h"
14#include "core/parameters.h"
15
17{
18 enum class ValueKind
19 {
20 Angle,
21 Rate
22 };
23
24 enum class Confidence
25 {
26 None,
27 Low,
28 Medium,
29 High
30 };
31
33 {
37 };
38
46
48
50
51 bool should_warn(Confidence confidence, WarningSensitivity sensitivity) noexcept;
52
53 void clear_captured_warnings() noexcept;
54
55 std::vector<std::string> take_captured_warnings();
56
57 void maybe_warn_about_rotation_value(RealType value, params::RotationAngleUnit declared_unit, ValueKind kind,
58 std::string_view source, std::string_view owner, std::string_view field);
59}
Global configuration file for the project.
double RealType
Type for real numbers.
Definition config.h:27
RotationAngleUnit
Defines the units used at external rotation-path boundaries.
Definition parameters.h:41
@ Degrees
Compass azimuth and elevation expressed in degrees.
std::vector< std::string > take_captured_warnings()
void maybe_warn_about_rotation_value(const RealType value, const params::RotationAngleUnit declared_unit, const ValueKind kind, const std::string_view source, const std::string_view owner, const std::string_view field)
bool should_warn(const Confidence confidence, const WarningSensitivity sensitivity) noexcept
constexpr WarningSensitivity kWarningSensitivity
InferenceResult infer_unit_from_value(const RealType value, const ValueKind kind) noexcept
Defines the Parameters struct and provides methods for managing simulation parameters.