45#include <drain/util/TreeOrdered.h>
46#include <drain/util/EnumFlags.h>
47#include <drain/image/Image.h>
76 void readFile(
const std::string &filename, Hi5Tree &tree, ModeFlagger::ivalue_t mode=(ATTRIBUTES |
DATASETS));
87 h5FileToTree(hid_t file_id,
const Hi5Tree::path_t &path, Hi5Tree &tree, ModeFlagger::ivalue_t mode = (ATTRIBUTES |
DATASETS));
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);
Two-way mapping between strings and objects of template class T.
Definition Dictionary.h:63
Flagger accepting values of enum type E.
Definition EnumFlags.h:190
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition Log.h:312
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:159
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::ivalue_t mode=(ATTRIBUTES|DATASETS))
Conversion from native HDF5 structure to Rack's hi5 tree structure.
Definition Hi5Read.cpp:84
static herr_t iterate(hid_t group_id, const char *member_name, void *operator_data)
Recursive traversal.
Definition Hi5Read.cpp:212
static void h5FileToTree(hid_t fid, Hi5Tree &tree, ModeFlagger::ivalue_t mode=(ATTRIBUTES|DATASETS))
Conversion from native HDF5 structure to Rack's hi5 tree structure.
Definition Hi5Read.h:96
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
Wrapper for unique (static) dictionary of enum values.
Definition EnumFlags.h:66