Adjust interface for LiveH5Reader

This commit is contained in:
2020-05-01 12:52:22 +02:00
parent c1f31b3c0f
commit 2f95c599ba
2 changed files with 20 additions and 73 deletions
+15
View File
@@ -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);
};