mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-24 10:50:42 +02:00
29 lines
631 B
C++
29 lines
631 B
C++
#ifndef SF_DAQ_BUFFER_BUFFERBINARYREADER_HPP
|
|
#define SF_DAQ_BUFFER_BUFFERBINARYREADER_HPP
|
|
|
|
|
|
#include <formats.hpp>
|
|
|
|
class BufferBinaryReader {
|
|
|
|
const std::string root_folder_;
|
|
const std::string device_name_;
|
|
|
|
std::string current_input_file_;
|
|
int input_file_fd_;
|
|
|
|
void open_file(const std::string& filename);
|
|
void close_current_file();
|
|
|
|
public:
|
|
BufferBinaryReader(const std::string &root_folder,
|
|
const std::string &device_name);
|
|
|
|
~BufferBinaryReader();
|
|
|
|
void get_block(const uint64_t block_id, BufferBinaryBlock *buffer);
|
|
};
|
|
|
|
|
|
#endif //SF_DAQ_BUFFER_BUFFERBINARYREADER_HPP
|