In C, there is H5Iget_name
. I couldn't find the equivalent in C++ but you can use DataSet::getId()
and give that to the C function.
I guess the reason why this is not as simple as having a getName()
accessor in DataSet
is that to read a dataset, you either need to know its name or walk the tree. The only exception I can think of is when dereferencing a reference to a dataset.