mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 18:14:38 +02:00
26 lines
547 B
C++
26 lines
547 B
C++
#ifndef FASTH5WRITER_HPP
|
|
#define FASTH5WRITER_HPP
|
|
|
|
#include <vector>
|
|
|
|
template <class B>
|
|
class FastH5Writer {
|
|
public:
|
|
FastH5Writer(
|
|
const uint16_t n_frames_per_file,
|
|
const std::vector<uint16_t>& frame_size
|
|
);
|
|
|
|
template <class T> void add_metadata(const std::string& metadata_name);
|
|
|
|
void set_pulse_id(const uint64_t pulse_id);
|
|
|
|
void write_data(const char* buffer);
|
|
template <class T> void write_metadata(
|
|
const std::string& name, const T& value);
|
|
|
|
};
|
|
|
|
|
|
#endif //FASTH5WRITER_HPP
|