srs-control 0.2.2
Loading...
Searching...
No Matches
srs::Config Class Reference

Main configuration struct. More...

#include <Configuration.hpp>

Collaboration diagram for srs::Config:

Public Attributes

int fec_control_local_port = common::FEC_CONTROL_LOCAL_PORT
 The port number of the local network that is used for the communication to FECs.
int fec_control_remote_port = common::DEFAULT_SRS_CONTROL_PORT
 The port number of the remote network that is used for the communication to FECs.
std::vector< int > fec_data_receive_ports = common::FEC_DAQ_RECEIVE_PORT
 The port number of the local network that is used for reading the data stream from FECs.
std::size_t data_buffer_size = common::LARGE_READ_MSG_BUFFER_SIZE
 The size of data buffer to store the incoming UDP frames.
std::vector< std::string > remote_fec_ips { std::string{ common::DEFAULT_SRS_IP } }
 Remote IP addresses of FECs.
std::size_t buffer_queue_capacity = common::DEFAULT_DATA_QUEUE_SIZE
 Capacity of the buffer queue.
std::vector< std::string > output_filenames
 Output file names.
std::size_t output_split = 1
 Number of splits from the input data to multiple outputs.
std::size_t time_wait_after_acq_off_ms = 1000
 time (milliseconds) to wait after turning off the srs and before stopping data reading
bool enable_frame_counter_check = false
 Enable frame counter checking to detect frame drop.
bool warn_if_data_drop = false
 Enable warnings when possible data drop occurs.
bool show_thread_id = false
 Show thread ID from console printouts.
common::DataPrintMode data_print_mode = srs::common::DataPrintMode::print_speed
 Set print mode.

Detailed Description

Main configuration struct.

Definition at line 14 of file Configuration.hpp.

Member Data Documentation

◆ buffer_queue_capacity

std::size_t srs::Config::buffer_queue_capacity = common::DEFAULT_DATA_QUEUE_SIZE

Capacity of the buffer queue.

Definition at line 44 of file Configuration.hpp.

◆ data_buffer_size

std::size_t srs::Config::data_buffer_size = common::LARGE_READ_MSG_BUFFER_SIZE

The size of data buffer to store the incoming UDP frames.

Definition at line 34 of file Configuration.hpp.

◆ data_print_mode

Set print mode.

Definition at line 79 of file Configuration.hpp.

◆ enable_frame_counter_check

bool srs::Config::enable_frame_counter_check = false

Enable frame counter checking to detect frame drop.

Definition at line 64 of file Configuration.hpp.

◆ fec_control_local_port

int srs::Config::fec_control_local_port = common::FEC_CONTROL_LOCAL_PORT

The port number of the local network that is used for the communication to FECs.

Definition at line 19 of file Configuration.hpp.

◆ fec_control_remote_port

int srs::Config::fec_control_remote_port = common::DEFAULT_SRS_CONTROL_PORT

The port number of the remote network that is used for the communication to FECs.

Definition at line 24 of file Configuration.hpp.

◆ fec_data_receive_ports

std::vector<int> srs::Config::fec_data_receive_ports = common::FEC_DAQ_RECEIVE_PORT

The port number of the local network that is used for reading the data stream from FECs.

Definition at line 29 of file Configuration.hpp.

◆ output_filenames

std::vector<std::string> srs::Config::output_filenames

Output file names.

Definition at line 49 of file Configuration.hpp.

◆ output_split

std::size_t srs::Config::output_split = 1

Number of splits from the input data to multiple outputs.

Definition at line 54 of file Configuration.hpp.

◆ remote_fec_ips

std::vector<std::string> srs::Config::remote_fec_ips { std::string{ common::DEFAULT_SRS_IP } }

Remote IP addresses of FECs.

Definition at line 39 of file Configuration.hpp.

◆ show_thread_id

bool srs::Config::show_thread_id = false

Show thread ID from console printouts.

Definition at line 74 of file Configuration.hpp.

◆ time_wait_after_acq_off_ms

std::size_t srs::Config::time_wait_after_acq_off_ms = 1000

time (milliseconds) to wait after turning off the srs and before stopping data reading

Definition at line 59 of file Configuration.hpp.

◆ warn_if_data_drop

bool srs::Config::warn_if_data_drop = false

Enable warnings when possible data drop occurs.

Definition at line 69 of file Configuration.hpp.


The documentation for this class was generated from the following file: