45 #include "drain/util/TreeOrdered.h"
46 #include "drain/util/Flags.h"
47 #include "drain/image/Image.h"
98 path.append(Hi5Tree::key_t::ROOT);
106 void h5AttributeToData(hid_t aid, hid_t datatype,
drain::Variable & attribute,
size_t elements=1){
110 attribute.setType(
typeid(T));
111 attribute.setSize(elements);
113 int status = H5Aread(aid, datatype, attribute.getPtr());
114 handleStatus<LOG_ERR>(mout, status,
"H5Aread failed for attribute=", attribute, __LINE__);
130 herr_t
iterate_attribute(hid_t
id,
const char * attr_name,
const H5A_info_t *ainfo,
void *operator_data);
133 herr_t
iterate(hid_t group_id,
const char * member_name,
void *operator_data);
Flagger accepting values of enum type E.
Definition: Flags.h:763
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
dict_t::value_t dvalue_t
Fundamental type of the bitvector - an integral type.
Definition: Flags.h:585
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Base class for Reader and Writer, essentially just wrapping some utilities.
Definition: Hi5.h:122
Mode
Definition: Hi5Read.h:66
@ EXCLUSIVE
Definition: Hi5Read.h:69
@ DATASETS
Definition: Hi5Read.h:68
static void h5FileToTree(hid_t file_id, const Hi5Tree::path_t &path, Hi5Tree &tree, ModeFlagger::dvalue_t mode=(ATTRIBUTES|DATASETS))
Conversion from native HDF5 structure to Rack's hi5 tree structure.
Definition: Hi5Read.cpp:84
static void h5FileToTree(hid_t fid, Hi5Tree &tree, ModeFlagger::dvalue_t mode=(ATTRIBUTES|DATASETS))
Conversion from native HDF5 structure to Rack's hi5 tree structure.
Definition: Hi5Read.h:96
static herr_t iterate(hid_t group_id, const char *member_name, void *operator_data)
Recursive traversal.
Definition: Hi5Read.cpp:212
static herr_t iterate_attribute(hid_t id, const char *attr_name, const H5A_info_t *ainfo, void *operator_data)
Definition: Hi5Read.cpp:220
static void h5DatasetToImage(hid_t id, const Hi5Tree::path_t &path, drain::image::Image &image)
const Hi5Tree::path_t &path
Definition: Hi5Read.cpp:382
DRAIN_VARIABLE Variable
Value container supporting dynamic type.
Definition: Variable.h:63