FERS 0.1.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
output_config.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 <cstdint>
10#include <optional>
11#include <string>
12
13#include "core/config.h"
14
15namespace core
16{
17 enum class OutputMode : std::uint8_t
18 {
19 Hdf5,
21 };
22
24 {
25 std::string host;
26 std::uint16_t port = 0;
28 std::uint32_t queue_depth = 1024;
29 std::optional<std::uint64_t> epoch_unix_nanoseconds = std::nullopt;
30 std::uint16_t max_udp_payload = 1400;
32 };
33
39
40 [[nodiscard]] inline bool isVita49Enabled(const OutputConfig& config) noexcept
41 {
42 return config.mode == OutputMode::Vita49Udp;
43 }
44}
Global configuration file for the project.
double RealType
Type for real numbers.
Definition config.h:27
bool isVita49Enabled(const OutputConfig &config) noexcept
math::Vec3 max
Vita49OutputConfig vita49
std::uint16_t max_udp_payload
std::optional< std::uint64_t > epoch_unix_nanoseconds