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

static synchronized int ncsa::hdf::hdf5lib::H5::H5Gget_objinfo ( int  loc_id,
String  name,
boolean  follow_link,
HDF5GroupInfo  info 
) throws HDF5LibraryException, NullPointerException [inline, static]

H5Gget_objinfo returns information about the specified object in an HDF5GroupInfo object.

Parameters:
loc_id IN: File, group, dataset, or datatype identifier.
name IN: Name of the object for which status is being sought.
follow_link IN: Link flag.
info OUT: the HDF5GroupInfo object to store the object infomation
Returns:
a non-negative value if successful, with the fields of HDF5GroupInfo object (if non-null) initialized.
Exceptions:
HDF5LibraryException - Error from the HDF-5 Library.
NullPointerException - name is null.
See also:
ncsa.hdf.hdf5lib.HDF5GroupInfo See public synchronized static native int H5Gget_objinfo();

Definition at line 4336 of file H5.java.

References H5Gget_objinfo().

    {
        int status = -1;
        long[] fileno = new long[2];
        long[] objno = new long[2];
        int[] link_info = new int[3];
        long[] mtime = new long[1];

        status = H5Gget_objinfo(loc_id, name, follow_link,
                fileno, objno, link_info, mtime);

        if (status >=0 ) {
            info.setGroupInfo(fileno, objno, link_info[0],
                    link_info[1], mtime[0], link_info[2]);
        }
        return status;
    }


Generated by  Doxygen 1.6.0   Back to index