Logo Search packages:      
Sourcecode: jhdf version File versions  Download package

static synchronized int ncsa::hdf::hdf5lib::H5::H5Gn_members ( int  loc_id,
String  name 
) throws HDF5LibraryException, NullPointerException [inline, static]

H5Gn_members report the number of objects in a Group. The 'objects' include everything that will be visited by H5Giterate. Each link is returned, so objects with multiple links will be counted once for each link.

loc_id file or group ID.
name name of the group to iterate, relative to the loc_id
the number of members in the group or -1 if error.
HDF5LibraryException - Error from the HDF-5 Library.
NullPointerException - name is null.

Definition at line 4204 of file H5.java.

References H5Gget_num_objs(), and H5Gopen().

        int grp_id = H5Gopen(loc_id, name);
        long [] nobj = new long[1];
        nobj[0] = -1;
        int ret = H5Gget_num_objs(grp_id, nobj);
        int r = (new Long(nobj[0])).intValue();
        return (r);

Generated by  Doxygen 1.6.0   Back to index