mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-06 10:53:12 +01:00
Adjust interface for LiveH5Reader
This commit is contained in:
1 parent
c1f31b3c0f
commit
2f95c599ba
2 files changed
+20
-73
No files matched your search
@@ -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