Is there a way to traverse Groups, starting at the root #693
-
I've been experimenting with HighFive over the past few days, and have mostly been able to figure out how to do what I wanted. However, today I needed the capability of opening an HDF5 file and walking through the tree of Groups. I dug around the examples and the source, but didn't find anything promising. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can try one of these: Or Which gives you control over the order in which you'd access the object. Not all This will tell you what a certain object is: |
Beta Was this translation helpful? Give feedback.
You can try one of these:
https://github.com/BlueBrain/HighFive/blob/master/include/highfive/bits/H5Node_traits.hpp#L135
https://github.com/BlueBrain/HighFive/blob/master/include/highfive/bits/H5Node_traits.hpp#L130
Or
https://github.com/BlueBrain/HighFive/blob/master/include/highfive/bits/H5Node_traits.hpp#L158
Which gives you control over the order in which you'd access the object. Not all
IndexType
s are available by default, depending on how the file was created. The order can sometimes matter a lot in terms of performance. However, as with anything performance related, first establish if you need to worry about performance, then measure if it's working.This will tell you what a certa…