mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-04 17:34:15 +02:00
Adjust interface for LiveH5Reader
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
#ifndef SF_DAQ_BUFFER_LIVEH5READER_HPP
|
||||
#define SF_DAQ_BUFFER_LIVEH5READER_HPP
|
||||
|
||||
#include <string>
|
||||
#include "jungfrau.hpp"
|
||||
|
||||
class LiveH5Reader {
|
||||
|
||||
const std::string current_filename_;
|
||||
const uint16_t source_id_;
|
||||
|
||||
public:
|
||||
LiveH5Reader(
|
||||
const std::string& device,
|
||||
const std::string& channel_name,
|
||||
const uint16_t source_id);
|
||||
|
||||
uint64_t get_latest_pulse_id();
|
||||
ModuleFrame* read_frame_metadata(uint64_t pulse_id);
|
||||
char* read_frame_data(uint64_t pulse_id);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user