diff options
author | Frank Baker <fbaker@hdfgroup.org> | 2008-11-19 20:04:10 (GMT) |
---|---|---|
committer | Frank Baker <fbaker@hdfgroup.org> | 2008-11-19 20:04:10 (GMT) |
commit | 5136aed3586e0977d5de8411831c0eb3b5f57eb4 (patch) | |
tree | 4336fa8cbfb2875425809eb7c5085126d7159612 /doc | |
parent | b88504d123ed51f331dcabcf568dc183452a2f00 (diff) | |
download | hdf5-5136aed3586e0977d5de8411831c0eb3b5f57eb4.zip hdf5-5136aed3586e0977d5de8411831c0eb3b5f57eb4.tar.gz hdf5-5136aed3586e0977d5de8411831c0eb3b5f57eb4.tar.bz2 |
[svn-r16106] Description:
H5Rget_obj_type
Added text to clarify distinction between "reference type" and
"referenced object type."
Specified that H5Dget_type is called on the dataset containing the
reference.
Addresses some issues of Bugzilla entry 216.
HTML cleanup and minor formatting and copy edits.
Tested: Firefox
Diffstat (limited to 'doc')
-rw-r--r-- | doc/html/RM_H5R.html | 162 |
1 files changed, 108 insertions, 54 deletions
diff --git a/doc/html/RM_H5R.html b/doc/html/RM_H5R.html index 1bb3436..2d51d17 100644 --- a/doc/html/RM_H5R.html +++ b/doc/html/RM_H5R.html @@ -354,76 +354,121 @@ END SUBROUTINE h5rdereference_f --> </dl> + <!-- NEW PAGE --> <!-- HEADER RIGHT "H5Rget_obj_type" --> <hr> <dl> <dt><strong>Name:</strong> <a name="Reference-GetObjType">H5Rget_obj_type</a> <dt><strong>Signature:</strong> - <dd><em>H5G_obj_t</em> <code>H5Rget_obj_type</code>(<em>hid_t</em> <code>id</code>, + <dd><em>H5G_obj_t</em> <code>H5Rget_obj_type</code>( + <em>hid_t</em> <code>loc_id</code>, <em>H5R_type_t</em> <code>ref_type</code>, <em>void *</em><code>ref</code> ) +<p> <dt><strong>Purpose:</strong> <dd>Retrieves the type of object that an object reference points to. +<p> <dt><strong>Description:</strong> - <dd>Given type of object reference, <code>ref_type</code>, - and a reference to an object, <code>ref</code>, + <dd>Given an object reference, <code>ref</code>, <code>H5Rget_obj_type</code> returns the type of the referenced object. - <p> - Valid object reference types, to pass in as <code>ref_type</code>, - include the following: - <table border="0"> - <tr align=left valign=top><td> </td><td> - <code>H5R_OBJECT</code></td><td> - Reference is an object reference. - </td></tr> - <tr align=left valign=top><td> </td><td> - <code>H5R_DATASET_REGION </code></td><td> - Reference is a dataset region reference. - </td></tr> - </table> - <p> - Valid object type return values include the following: - <table border="0"> - <tr align=left valign=top><td> </td><td> - <code>H5G_LINK</code></td><td> - Object is a symbolic link. - </td></tr> - <tr align=left valign=top><td> </td><td> - <code>H5G_GROUP</code></td><td> - Object is a group. - </td></tr> - <tr align=left valign=top><td> </td><td> - <code>H5G_DATASET </code></td><td> - Object is a dataset. - </td></tr> - <tr align=left valign=top><td> </td><td> - <code>H5G_TYPE</code></td><td> - Object is a named datatype. - </td></tr> - </table> + <p> + A <i>reference type</i> is the type of reference, either + an object reference or a dataset region reference. + An <i>object reference</i> points to an HDF5 object while + a <i>dataset region reference</i> points to a defined region within + a dataset. + <p> + The <i>referenced object</i> is the object the reference points to. + The <i>referenced object type</i>, + or the type of the referenced object, + is the type of the object that the reference points to. + <p> + The location identifier, <code>loc_id</code>, is the identifier + for either the dataset containing the object reference or + the group containing that dataset. + <p> + Valid reference types, to pass in as <code>ref_type</code>, + include the following: + <table border="0"> + <tr align=left valign=top><td> </td><td> + <code>H5R_OBJECT</code></td><td> + Object reference + </td></tr> + <tr align=left valign=top><td> </td><td> + <code>H5R_DATASET_REGION </code></td><td> + Dataset region reference + </td></tr> + </table> + <p> + If the application does not already know the object reference type, + that can be determined with three preliminary calls: + <ul> + <li>Call <code>H5Dget_type</code> on the dataset + containing the reference to get a datatype identifier + for the dataset’s datatype. + <li>Using that datatype identifier, + <code>H5Tget_class</code> returns a datatype class. + <li>If the datatype class is <code>H5T_REFERENCE</code>, + <code>H5Tequal</code> can then be used to determine whether + the reference’s datatype is + <code>H5T_STD_REF_OBJ</code> or + <code>H5T_STD_REF_DSETREG</code>: + <ul> + <li>If the datatype is <code>H5T_STD_REF_OBJ</code>, + the reference object type is <code>H5R_OBJECT</code>. + <li>If the datatype is <code>H5T_STD_REF_DSETREG</code>, + the reference object type is + <code>H5R_DATASET_REGION</code>. + </ul> + </ul> + <p> + When the function completes successfully, it returns one of + the following valid object type values + (defined in <code>H5Gpublic.h</code>): + <table border="0"> + <tr align=left valign=top><td> </td><td> + <code>H5G_LINK</code></td><td> + Object is a symbolic link. + </td></tr> + <tr align=left valign=top><td> </td><td> + <code>H5G_GROUP</code></td><td> + Object is a group. + </td></tr> + <tr align=left valign=top><td> </td><td> + <code>H5G_DATASET </code></td><td> + Object is a dataset. + </td></tr> + <tr align=left valign=top><td> </td><td> + <code>H5G_TYPE</code></td><td> + Object is a named datatype. + </td></tr> + </table> +<p> <dt><strong>Parameters:</strong> <ul><table> <tr> - <td valign="top"><em>hid_t</em> <code>id</code></td> - <td valign="top">IN: The dataset containing the reference object or - the location identifier of the object that the - dataset is located within.</td></tr> + <td valign="top"><em>hid_t</em> <code>loc_id</code></td> + <td valign="top">IN: The dataset containing the reference object + or the group containing that dataset.</td></tr> <tr> - <td valign="top"><em>H5R_type_t</em> <code>ref_type </code></td> + <td valign="top"><em>H5R_type_t</em> <code>ref_type </code></td> <td valign="top">IN: Type of reference to query.</td></tr> <tr> - <td valign="top"><em>void *</em><code>ref</code></td> + <td valign="top"><em>void *</em><code>ref</code></td> <td valign="top">IN: Reference to query.</td></tr> </table></ul> +<p> +<!-- NEW PAGE --> <dt><strong>Returns:</strong> - <dd>Returns an object type as defined in <code>H5Gpublic.h</code> if successful; + <dd>Returns a valid object type if successful; otherwise returns <code>H5G_UNKNOWN</code>. +<p> <dt><strong>Fortran90 Interface:</strong> h5rget_object_type_f <dd> - <pre> + <pre> SUBROUTINE h5rget_object_type_f(dset_id, ref, obj_type, hdferr) IMPLICIT NONE INTEGER(HID_T), INTENT(IN) :: dset_id ! Dataset identifier @@ -434,19 +479,28 @@ SUBROUTINE h5rget_object_type_f(dset_id, ref, obj_type, hdferr) ! H5G_GROUP_F 1 ! H5G_DATASET_F 2 ! H5G_TYPE_F 3 - INTEGER, INTENT(OUT) :: hdferr ! Error code + INTEGER, INTENT(OUT) :: hdferr ! Error code + ! 0 on success and -1 on failure END SUBROUTINE h5rget_object_type_f - </pre> - - <!--<dt><strong>Non-C API(s):</strong> - <dd> - - <img src="Graphics/Java.gif"> - <img src="Graphics/C++.gif"> - --> + </pre> + +<p> +<dt><strong>History:</strong> + <dd><table width="90%"> + <tr> + <td valign="top" align="left" width="10%"> + <strong>Release</strong> </td> + <td valign="top" align="left"> + <strong>C</strong></td></tr> + <tr> + <td valign="top">1.6.0</td> + <td valign="top"> + Function introduced in this release.</td></tr> + </table> </dl> + <!-- NEW PAGE --> <!-- HEADER RIGHT "H5Rget_object_type" --> <hr> @@ -617,7 +671,7 @@ Describes HDF5 Release 1.6.8, November 2008 <!-- #EndLibraryItem --><SCRIPT LANGUAGE="JAVASCRIPT"> <!-- -document.writeln("Last modified: 25 January 2006"); +document.writeln("Last modified: 12 November 2008"); --> </SCRIPT> |