34#include <libdap/InternalErr.h>
42HDF5CFFloat64::HDF5CFFloat64(
const string &n,
const string &d):
Float64(n, d)
46HDF5CFFloat64::HDF5CFFloat64(
const string &n,
const string &d,
const string &d_f) :
Float64(n, d),filename(d_f)
50BaseType *HDF5CFFloat64::ptr_duplicate()
52 auto HDF5CFFloat64_unique = make_unique<HDF5CFFloat64>(*
this);
53 return HDF5CFFloat64_unique.release();
56bool HDF5CFFloat64::read()
58 BESDEBUG(
"h5",
"Coming to HDF5CFFloat64 read "<<endl);
63 hid_t file_id = H5Fopen(filename.c_str(),H5F_ACC_RDONLY,H5P_DEFAULT);
65 throw InternalErr(__FILE__,__LINE__,
"Fail to obtain the HDF5 file ID .");
69 dset_id = H5Dopen2(file_id,dataset().c_str(),H5P_DEFAULT);
73 throw InternalErr(__FILE__,__LINE__,
"Fail to obtain the dataset .");
85 if (H5Dclose(dset_id) < 0) {
86 throw InternalErr(__FILE__, __LINE__,
"Unable to close the dset.");
This class provides a way to map HDF5 64-bit floating-point(double) to DAP 64-bit floating-point for ...
void get_data(hid_t dset, void *buf)