How to use HDF5 C++ wrapper to scan HDF5 tree??

Dear all

I wrote a simulation program and used HDF5 to export simulation results.
However, the names of groups and datasets in dumped file may be different due to different simulation setting.
I am now using C++ to write post-processing program and what I need is some API in HDF5 C++ wrapper I can call to scan the entire file tree or part of the tree (under certain group).In this way I can find out exactly how many groups and datasets in certain dumped file. Is there such function in HDF5 C++ wrapper?

Best regard

I am now using C++ to write post-processing program and what I need is
some API in HDF5 C++ wrapper I can call to scan the entire file tree
or part of the tree (under certain group).In this way I can find out
exactly how many groups and datasets in certain dumped file. Is there
such function in HDF5 C++ wrapper?

I think you are looking for the method called getObjinfo

···

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Hello,

The combination of some of these functions might do what you want:

getNumObjs, then
getObjTypeByIdx
getObjnameByIdx
getObjinfo

or iterateElems.

Some of these require H5_NO_DEPRECATED_SYMBOLS not defined.

Binh-Minh

···

-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of
r95222028@ntu.edu.tw
Sent: Tuesday, December 25, 2012 9:30 AM
To: HDF Users Discussion List
Subject: [Hdf-forum] How to use HDF5 C++ wrapper to scan HDF5 tree??

Dear all

I wrote a simulation program and used HDF5 to export simulation results.
However, the names of groups and datasets in dumped file may be
different due to different simulation setting.
I am now using C++ to write post-processing program and what I need is
some API in HDF5 C++ wrapper I can call to scan the entire file tree
or part of the tree (under certain group).In this way I can find out
exactly how many groups and datasets in certain dumped file. Is there
such function in HDF5 C++ wrapper?

Best regard

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.549 / Virus Database: 270.9.0/1778 - Release Date: 11/9/2008
2:14 PM