[hdf-forum] testing if a subgroup exists
Mark Howison
MHowison at lbl.gov
Thu Jun 18 12:20:29 EDT 2009
Hi,
I have a piece of code that queries a group to see if a subgroup with
a given name exists:
static h5part_int64_t
_have_object (
const hid_t id,
const char *name
) {
return (H5Gget_objinfo( id, name, 1, NULL ) >= 0 ? 1 : 0);
}
The problem is that H5Gget_objinfo is now deprecated in 1.8. Looking
through the reference manual, I couldn't find a call that simply tests
whether an object exists or not given a location id and the object's
name. Any recommendations?
Thanks,
Mark
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe at hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe at hdfgroup.org.
More information about the Hdf-forum
mailing list