mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
wip rewrite
This commit is contained in:
15
slsReceiverSoftware/src/HDF5VirtualFile.cpp
Normal file
15
slsReceiverSoftware/src/HDF5VirtualFile.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include "HDF5VirtualFile.h"
|
||||
#include "sls/logger.h"
|
||||
|
||||
HDF5VirtualFile::HDF5VirtualFile(int index) : File(index, HDF5), fd_(0) {}
|
||||
|
||||
HDF5VirtualFile::~HDF5VirtualFile() { CloseFile(); }
|
||||
|
||||
void HDF5VirtualFile::CloseFile() {
|
||||
if (fd_ != 0) {
|
||||
if (H5Fclose(fd_) < 0) {
|
||||
LOG(logERROR) << "Could not close virtual HDF5 handles";
|
||||
}
|
||||
fd_ = 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user