wip rewrite

This commit is contained in:
2021-06-29 20:45:52 +02:00
parent ee1a1563ba
commit d7dc1912ac
12 changed files with 481 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#pragma once
#include "File.h"
#include "H5Cpp.h"
#ifndef H5_NO_NAMESPACE
using namespace H5;
#endif
#include <mutex>
class HDF5MasterFile : private virtual slsDetectorDefs, public File {
public:
HDF5MasterFile(int index, std::mutex *hdf5Lib);
~HDF5MasterFile();
void CloseFile() override;
void CreateMasterFile(MasterAttributes *attr, std::string filePath,
std::string fileNamePrefix, uint64_t fileIndex,
bool overWriteEnable, bool silentMode) override;
private:
std::mutex *hdf5Lib_;
H5File *fd_{nullptr};
std::string fileName_;
};