srs-control
0.2.2
Toggle main menu visibility
Loading...
Searching...
No Matches
Configuration.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
srs/utils/CommonDefinitions.hpp
"
4
#include <cstddef>
5
#include <string>
6
#include <vector>
7
8
namespace
srs
9
{
14
struct
Config
15
{
19
int
fec_control_local_port
=
common::FEC_CONTROL_LOCAL_PORT
;
20
24
int
fec_control_remote_port
=
common::DEFAULT_SRS_CONTROL_PORT
;
25
29
std::vector<int>
fec_data_receive_ports
=
common::FEC_DAQ_RECEIVE_PORT
;
30
34
std::size_t
data_buffer_size
=
common::LARGE_READ_MSG_BUFFER_SIZE
;
35
39
std::vector<std::string>
remote_fec_ips
{ std::string{
common::DEFAULT_SRS_IP
} };
40
44
std::size_t
buffer_queue_capacity
=
common::DEFAULT_DATA_QUEUE_SIZE
;
45
49
std::vector<std::string>
output_filenames
;
50
54
std::size_t
output_split
= 1;
55
59
std::size_t
time_wait_after_acq_off_ms
= 1000;
60
64
bool
enable_frame_counter_check
=
false
;
65
69
bool
warn_if_data_drop
=
false
;
70
74
bool
show_thread_id
=
false
;
75
79
common::DataPrintMode
data_print_mode
=
srs::common::DataPrintMode::print_speed
;
80
};
81
}
// namespace srs
CommonDefinitions.hpp
srs::common::FEC_CONTROL_LOCAL_PORT
static constexpr int FEC_CONTROL_LOCAL_PORT
Default value of the listening port number used for the FEC communications.
Definition
CommonDefinitions.hpp:40
srs::common::DEFAULT_DATA_QUEUE_SIZE
constexpr auto DEFAULT_DATA_QUEUE_SIZE
Definition
CommonDefinitions.hpp:52
srs::common::FEC_DAQ_RECEIVE_PORT
const auto FEC_DAQ_RECEIVE_PORT
Definition
CommonDefinitions.hpp:35
srs::common::DataPrintMode
DataPrintMode
Print mode of the status line.
Definition
CommonDefinitions.hpp:71
srs::common::DataPrintMode::print_speed
@ print_speed
Print the data reading rate.
Definition
CommonDefinitions.hpp:72
srs::common::DEFAULT_SRS_IP
constexpr auto DEFAULT_SRS_IP
Definition
CommonDefinitions.hpp:13
srs::common::LARGE_READ_MSG_BUFFER_SIZE
constexpr auto LARGE_READ_MSG_BUFFER_SIZE
size of the data array for reading a UDP package
Definition
CommonDefinitions.hpp:21
srs::common::DEFAULT_SRS_CONTROL_PORT
constexpr auto DEFAULT_SRS_CONTROL_PORT
Definition
CommonDefinitions.hpp:34
srs
Definition
Application.cpp:45
srs::Config
Main configuration struct.
Definition
Configuration.hpp:15
srs::Config::output_filenames
std::vector< std::string > output_filenames
Output file names.
Definition
Configuration.hpp:49
srs::Config::remote_fec_ips
std::vector< std::string > remote_fec_ips
Remote IP addresses of FECs.
Definition
Configuration.hpp:39
srs::Config::time_wait_after_acq_off_ms
std::size_t time_wait_after_acq_off_ms
time (milliseconds) to wait after turning off the srs and before stopping data reading
Definition
Configuration.hpp:59
srs::Config::fec_data_receive_ports
std::vector< int > fec_data_receive_ports
The port number of the local network that is used for reading the data stream from FECs.
Definition
Configuration.hpp:29
srs::Config::show_thread_id
bool show_thread_id
Show thread ID from console printouts.
Definition
Configuration.hpp:74
srs::Config::buffer_queue_capacity
std::size_t buffer_queue_capacity
Capacity of the buffer queue.
Definition
Configuration.hpp:44
srs::Config::output_split
std::size_t output_split
Number of splits from the input data to multiple outputs.
Definition
Configuration.hpp:54
srs::Config::fec_control_local_port
int fec_control_local_port
The port number of the local network that is used for the communication to FECs.
Definition
Configuration.hpp:19
srs::Config::warn_if_data_drop
bool warn_if_data_drop
Enable warnings when possible data drop occurs.
Definition
Configuration.hpp:69
srs::Config::data_print_mode
common::DataPrintMode data_print_mode
Set print mode.
Definition
Configuration.hpp:79
srs::Config::enable_frame_counter_check
bool enable_frame_counter_check
Enable frame counter checking to detect frame drop.
Definition
Configuration.hpp:64
srs::Config::data_buffer_size
std::size_t data_buffer_size
The size of data buffer to store the incoming UDP frames.
Definition
Configuration.hpp:34
srs::Config::fec_control_remote_port
int fec_control_remote_port
The port number of the remote network that is used for the communication to FECs.
Definition
Configuration.hpp:24
backend
srs
devices
Configuration.hpp
Impressum
Datenschutzerklärung
Generated by
1.17.0