33 #include "config_hdf5.h"
35 #include "InternalErr.h"
43 HDF5CFFloat64::HDF5CFFloat64(
const string &n,
const string &d):Float64(n, d)
47 HDF5CFFloat64::HDF5CFFloat64(
const string &n,
const string &d,
const string &d_f) : Float64(n, d),filename(d_f)
52 HDF5CFFloat64::~HDF5CFFloat64()
55 BaseType *HDF5CFFloat64::ptr_duplicate()
60 bool HDF5CFFloat64::read()
62 BESDEBUG(
"h5",
"Coming to HDF5CFFloat64 read "<<endl);
67 hid_t file_id = H5Fopen(filename.c_str(),H5F_ACC_RDONLY,H5P_DEFAULT);
69 throw InternalErr(__FILE__,__LINE__,
"Fail to obtain the HDF5 file ID .");
73 dset_id = H5Dopen2(file_id,dataset().c_str(),H5P_DEFAULT);
77 throw InternalErr(__FILE__,__LINE__,
"Fail to obtain the dataset .");
89 if (H5Dclose(dset_id) < 0) {
90 throw InternalErr(__FILE__, __LINE__,
"Unable to close the dset.");