mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 06:44:34 +02:00
29 lines
771 B
C++
29 lines
771 B
C++
#ifndef BUFFER_UTILS_HPP
|
|
#define BUFFER_UTILS_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace BufferUtils
|
|
{
|
|
std::string get_filename(
|
|
const std::string& detector_folder,
|
|
const std::string& module_name,
|
|
const uint64_t pulse_id);
|
|
|
|
std::size_t get_file_frame_index(const 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);
|
|
|
|
void* bind_socket(
|
|
void* ctx, const std::string& detector_name, const int source_id);
|
|
void* connect_socket(
|
|
void* ctx, const std::string& detector_name, const int source_id);
|
|
}
|
|
|
|
#endif //BUFFER_UTILS_HPP
|