21 lines
558 B
C++
21 lines
558 B
C++
// Copyright (2019-2022) Paul Scherrer Institute
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef JUNGFRAUJOCH_HDF5WRITER_H
|
|
#define JUNGFRAUJOCH_HDF5WRITER_H
|
|
|
|
#include <numeric>
|
|
|
|
#include "HDF5DataFile.h"
|
|
#include "../frame_serialize/StartMessage.h"
|
|
|
|
class HDF5Writer {
|
|
std::vector<std::unique_ptr<HDF5DataFile> > files;
|
|
public:
|
|
explicit HDF5Writer(const StartMessage &request);
|
|
void Write(const void *data, size_t data_size, const std::vector<SpotToSave>& spots,
|
|
int64_t image_number);
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_HDF5WRITER_H
|