mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-20 20:54:36 +02:00
dbc913ee78
All references to folders and files inside buffer were updated. - Base folder to write detector: detector_folder - Name of the modules inside detector_folder: module_name - Data grouping folders based on pulse_id: data_folder - Data grouping files, based on pulse_id: data_file
24 lines
537 B
C++
24 lines
537 B
C++
#ifndef BUFFER_UTILS_HPP
|
|
#define BUFFER_UTILS_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace BufferUtils
|
|
{
|
|
std::string get_filename(
|
|
std::string detector_folder,
|
|
std::string module_name,
|
|
uint64_t pulse_id);
|
|
|
|
std::size_t get_file_frame_index(uint64_t pulse_id);
|
|
|
|
void update_latest_file(
|
|
const std::string& latest_filename,
|
|
const std::string& filename_to_write);
|
|
|
|
void create_destination_folder(const std::string& output_file);
|
|
}
|
|
|
|
#endif //BUFFER_UTILS_HPP
|