Througout this manual we assume that every source snippet has somewhere
included.
Managing files
Unlike in the C-API an instance of h5::file
is not a valid parent object. For this purpose one has get the root group of the file with
h5::group root_group = f.root();
with groups
h5::group g = root_group.create("new_group",....);
Need to find a good way how to handle group creation property lists.
Groups should provide a STL compliant iterator interface
std::vector<h5::dataset> datasets;
h5::group g = ....;
std::copy_if(g.begin(),g.end(),std::back_inserter(datasets),
[](const auto &o) { return h5::is_dataset(o); });
hello
Datasets
and writing data
container adapter
using value_type = std::vector<double>;
using adapter_type = h5::container_type<value_type>;
h5::dataset d = group["detector_data"];
adapter_type frames(d,0);
for(auto frame: frames)
{
}
Attributes