mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
1337 lines
116 KiB
HTML
1337 lines
116 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.16.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>HDF5: References (H5R)</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="hdf5doxy.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="hdf5doxy.css" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" src="hdf5_navtree_hacks.js"></script>
|
|
<div style="background:#FFDDDD;font-size:120%;text-align:center;margin:0;padding:5px">Help us improve by taking our short survey: <a href="https://www.hdfgroup.org/website-survey/">https://www.hdfgroup.org/website-survey/</a></div>
|
|
<!-- ... other metadata & script includes ... -->
|
|
<script type="text/javascript" src="doxygen-awesome-tabs.js"></script>
|
|
<script type="text/javascript">
|
|
DoxygenAwesomeTabs.init()
|
|
</script>
|
|
<!-- Google tag (gtag.js) -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-57FMZK4S7X"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'G-57FMZK4S7X');
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectlogo"><img alt="Logo" src="HDFG-logo.png"/></td>
|
|
<td id="projectalign">
|
|
<div id="projectname">HDF5<span id="projectnumber"> Last Updated on 2026-09-02</span>
|
|
</div>
|
|
<div id="projectbrief">The HDF5 Field Guide</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.16.1 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(function() { codefold.init(); });
|
|
</script>
|
|
<div id="main-nav">
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="_getting_started.html"><span>Getting started</span></a></li>
|
|
<li><a href="_u_g.html"><span>User Guide</span></a></li>
|
|
<li><a href="_r_m.html"><span>Reference Manual</span></a></li>
|
|
<li><a href="_cookbook.html"><span>Cookbook</span></a></li>
|
|
<li><a href="_t_n.html"><span>Technical Notes</span></a></li>
|
|
<li><a href="_r_f_c.html"><span>RFCs</span></a></li>
|
|
<li><a href="_s_p_e_c.html"><span>Specifications</span></a></li>
|
|
<li><a href="_g_l_s.html"><span>Glossary</span></a></li>
|
|
<li><a href="_f_t_s.html"><span>Full-Text Search</span></a></li>
|
|
<li><a href="_about.html"><span>About</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<span id="MSearchSelect" class="search-icon" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"><span class="search-icon-dropdown"></span></span>
|
|
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><div id="MSearchCloseImg" class="close-icon"></div></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- main-nav -->
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function(){initNavTree('group___h5_r.html','',''); });
|
|
</script>
|
|
<div id="container">
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">References (H5R) </div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Use the functions in this module to manage HDF5 references. Referents can be HDF5 objects, attributes, and selections on datasets a.k.a. dataset regions. </p>
|
|
</div><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 id="header-define-members" class="groupheader"><a id="define-members" name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:ga5dc19b9d1833af66c5e1f819f2c05c4a" id="r_ga5dc19b9d1833af66c5e1f819f2c05c4a"><td class="memItemLeft">#define </td><td class="memItemRight"><a class="el" href="#ga5dc19b9d1833af66c5e1f819f2c05c4a">H5Rdereference</a>   <a class="el" href="#ga9b09586f7b6ec708434dd8f95f58a9b7">H5Rdereference2</a></td></tr>
|
|
<tr class="memitem:gafe413df448be0d230de922357fd7bc3b" id="r_gafe413df448be0d230de922357fd7bc3b"><td class="memItemLeft">#define </td><td class="memItemRight"><a class="el" href="#gafe413df448be0d230de922357fd7bc3b">H5Rget_obj_type</a>   <a class="el" href="#ga766e39a76bcdd68dc514425353eff807">H5Rget_obj_type2</a></td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:gad5b7b117cfaea90d1e4786304c58c55c" id="r_gad5b7b117cfaea90d1e4786304c58c55c"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#gad5b7b117cfaea90d1e4786304c58c55c">H5Rcopy</a> (const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *src_ref_ptr, <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *dst_ref_ptr)</td></tr>
|
|
<tr class="memdesc:gad5b7b117cfaea90d1e4786304c58c55c"><td class="mdescLeft"> </td><td class="mdescRight">Copies an existing reference. <br /></td></tr>
|
|
<tr class="memitem:ga0ac6997b5de26b11d91a95de2869950d" id="r_ga0ac6997b5de26b11d91a95de2869950d"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#ga0ac6997b5de26b11d91a95de2869950d">H5Rcreate</a> (void *ref, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> space_id)</td></tr>
|
|
<tr class="memdesc:ga0ac6997b5de26b11d91a95de2869950d"><td class="mdescLeft"> </td><td class="mdescRight">Creates a reference. <br /></td></tr>
|
|
<tr class="memitem:gacae1bf2263befeac54d81f27995721f8" id="r_gacae1bf2263befeac54d81f27995721f8"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#gacae1bf2263befeac54d81f27995721f8">H5Rcreate_attr</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, const char *attr_name, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oapl_id, <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr)</td></tr>
|
|
<tr class="memdesc:gacae1bf2263befeac54d81f27995721f8"><td class="mdescLeft"> </td><td class="mdescRight">Creates an attribute reference. <br /></td></tr>
|
|
<tr class="memitem:gad0fb6ec99ecefa602756a5682addfc69" id="r_gad0fb6ec99ecefa602756a5682addfc69"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#gad0fb6ec99ecefa602756a5682addfc69">H5Rcreate_object</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oapl_id, <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr)</td></tr>
|
|
<tr class="memdesc:gad0fb6ec99ecefa602756a5682addfc69"><td class="mdescLeft"> </td><td class="mdescRight">Creates an object reference. <br /></td></tr>
|
|
<tr class="memitem:ga60134eb917afbe89aa23eb25a30d249b" id="r_ga60134eb917afbe89aa23eb25a30d249b"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#ga60134eb917afbe89aa23eb25a30d249b">H5Rcreate_region</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> space_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oapl_id, <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr)</td></tr>
|
|
<tr class="memdesc:ga60134eb917afbe89aa23eb25a30d249b"><td class="mdescLeft"> </td><td class="mdescRight">Creates a region reference. <br /></td></tr>
|
|
<tr class="memitem:gafe7bbbc168c4836949c4c0b092654c45" id="r_gafe7bbbc168c4836949c4c0b092654c45"><td class="memItemLeft"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight"><a class="el" href="#gafe7bbbc168c4836949c4c0b092654c45">H5Rdereference1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, const void *ref)</td></tr>
|
|
<tr class="memdesc:gafe7bbbc168c4836949c4c0b092654c45"><td class="mdescLeft"> </td><td class="mdescRight">Opens the HDF5 object referenced. <br /></td></tr>
|
|
<tr class="memitem:ga9b09586f7b6ec708434dd8f95f58a9b7" id="r_ga9b09586f7b6ec708434dd8f95f58a9b7"><td class="memItemLeft"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight"><a class="el" href="#ga9b09586f7b6ec708434dd8f95f58a9b7">H5Rdereference2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oapl_id, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, const void *ref)</td></tr>
|
|
<tr class="memdesc:ga9b09586f7b6ec708434dd8f95f58a9b7"><td class="mdescLeft"> </td><td class="mdescRight">Opens the HDF5 object referenced. <br /></td></tr>
|
|
<tr class="memitem:ga026114e6c23588bf89bb473eb9e4d095" id="r_ga026114e6c23588bf89bb473eb9e4d095"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#ga026114e6c23588bf89bb473eb9e4d095">H5Rdestroy</a> (<a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr)</td></tr>
|
|
<tr class="memdesc:ga026114e6c23588bf89bb473eb9e4d095"><td class="mdescLeft"> </td><td class="mdescRight">Closes a reference. <br /></td></tr>
|
|
<tr class="memitem:ga8d7dac2c604356f2fc657f36a201aea0" id="r_ga8d7dac2c604356f2fc657f36a201aea0"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#aa8f6c28736dbd0f18388c67911d38aca">htri_t</a> </td><td class="memItemRight"><a class="el" href="#ga8d7dac2c604356f2fc657f36a201aea0">H5Requal</a> (const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref1_ptr, const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref2_ptr)</td></tr>
|
|
<tr class="memdesc:ga8d7dac2c604356f2fc657f36a201aea0"><td class="mdescLeft"> </td><td class="mdescRight">Determines whether two references are equal. <br /></td></tr>
|
|
<tr class="memitem:gaf9c6823346cc34f02b9f5d11e56344a0" id="r_gaf9c6823346cc34f02b9f5d11e56344a0"><td class="memItemLeft">ssize_t </td><td class="memItemRight"><a class="el" href="#gaf9c6823346cc34f02b9f5d11e56344a0">H5Rget_attr_name</a> (const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, char *name, size_t size)</td></tr>
|
|
<tr class="memdesc:gaf9c6823346cc34f02b9f5d11e56344a0"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the attribute name for a referenced object. <br /></td></tr>
|
|
<tr class="memitem:ga659d950e37122a59d50612b407a48900" id="r_ga659d950e37122a59d50612b407a48900"><td class="memItemLeft">ssize_t </td><td class="memItemRight"><a class="el" href="#ga659d950e37122a59d50612b407a48900">H5Rget_file_name</a> (const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, char *name, size_t size)</td></tr>
|
|
<tr class="memdesc:ga659d950e37122a59d50612b407a48900"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the file name for a referenced object. <br /></td></tr>
|
|
<tr class="memitem:ga4c112c388f697324270fd085100dccaa" id="r_ga4c112c388f697324270fd085100dccaa"><td class="memItemLeft">ssize_t </td><td class="memItemRight"><a class="el" href="#ga4c112c388f697324270fd085100dccaa">H5Rget_name</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, const void *ref, char *name, size_t size)</td></tr>
|
|
<tr class="memdesc:ga4c112c388f697324270fd085100dccaa"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a name for a referenced object. <br /></td></tr>
|
|
<tr class="memitem:gac5a0a3a874cd3c4dc630579521539bb6" id="r_gac5a0a3a874cd3c4dc630579521539bb6"><td class="memItemLeft">ssize_t </td><td class="memItemRight"><a class="el" href="#gac5a0a3a874cd3c4dc630579521539bb6">H5Rget_obj_name</a> (<a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> rapl_id, char *name, size_t size)</td></tr>
|
|
<tr class="memdesc:gac5a0a3a874cd3c4dc630579521539bb6"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the object name for a referenced object. <br /></td></tr>
|
|
<tr class="memitem:gaf3736b2880a58471882b079b9f03defe" id="r_gaf3736b2880a58471882b079b9f03defe"><td class="memItemLeft"><a class="el" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6">H5G_obj_t</a> </td><td class="memItemRight"><a class="el" href="#gaf3736b2880a58471882b079b9f03defe">H5Rget_obj_type1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> id, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, const void *ref)</td></tr>
|
|
<tr class="memdesc:gaf3736b2880a58471882b079b9f03defe"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the type of object that an object reference points to. <br /></td></tr>
|
|
<tr class="memitem:ga766e39a76bcdd68dc514425353eff807" id="r_ga766e39a76bcdd68dc514425353eff807"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#ga766e39a76bcdd68dc514425353eff807">H5Rget_obj_type2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> id, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, const void *ref, <a class="el" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> *obj_type)</td></tr>
|
|
<tr class="memdesc:ga766e39a76bcdd68dc514425353eff807"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the type of object that an object reference points to. <br /></td></tr>
|
|
<tr class="memitem:ga6fb098a1a4c9369d76dbeeaf40d6d2af" id="r_ga6fb098a1a4c9369d76dbeeaf40d6d2af"><td class="memItemLeft"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight"><a class="el" href="#ga6fb098a1a4c9369d76dbeeaf40d6d2af">H5Rget_obj_type3</a> (<a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> rapl_id, <a class="el" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> *obj_type)</td></tr>
|
|
<tr class="memdesc:ga6fb098a1a4c9369d76dbeeaf40d6d2af"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the type of object that an object reference points to. <br /></td></tr>
|
|
<tr class="memitem:ga1702d609e85b9edd3d1e526a0276484f" id="r_ga1702d609e85b9edd3d1e526a0276484f"><td class="memItemLeft"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight"><a class="el" href="#ga1702d609e85b9edd3d1e526a0276484f">H5Rget_region</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> dataset, <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> ref_type, const void *ref)</td></tr>
|
|
<tr class="memdesc:ga1702d609e85b9edd3d1e526a0276484f"><td class="mdescLeft"> </td><td class="mdescRight">Sets up a dataspace and selection as specified by a region reference. <br /></td></tr>
|
|
<tr class="memitem:ga56989d33835ec289269d366dc28aa4ad" id="r_ga56989d33835ec289269d366dc28aa4ad"><td class="memItemLeft"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> </td><td class="memItemRight"><a class="el" href="#ga56989d33835ec289269d366dc28aa4ad">H5Rget_type</a> (const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr)</td></tr>
|
|
<tr class="memdesc:ga56989d33835ec289269d366dc28aa4ad"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the type of a reference. <br /></td></tr>
|
|
<tr class="memitem:ga2a00d73b9a13b9069d0ad39225dd9f71" id="r_ga2a00d73b9a13b9069d0ad39225dd9f71"><td class="memItemLeft"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight"><a class="el" href="#ga2a00d73b9a13b9069d0ad39225dd9f71">H5Ropen_attr</a> (<a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> rapl_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> aapl_id)</td></tr>
|
|
<tr class="memdesc:ga2a00d73b9a13b9069d0ad39225dd9f71"><td class="mdescLeft"> </td><td class="mdescRight">Opens the HDF5 attribute referenced. <br /></td></tr>
|
|
<tr class="memitem:gaa6692bd3a5b490c8db05b90a5888d0dd" id="r_gaa6692bd3a5b490c8db05b90a5888d0dd"><td class="memItemLeft"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight"><a class="el" href="#gaa6692bd3a5b490c8db05b90a5888d0dd">H5Ropen_object</a> (<a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> rapl_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oapl_id)</td></tr>
|
|
<tr class="memdesc:gaa6692bd3a5b490c8db05b90a5888d0dd"><td class="mdescLeft"> </td><td class="mdescRight">Opens the HDF5 object referenced. <br /></td></tr>
|
|
<tr class="memitem:ga400154b014acd1736bae9a127f4e9a1a" id="r_ga400154b014acd1736bae9a127f4e9a1a"><td class="memItemLeft"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight"><a class="el" href="#ga400154b014acd1736bae9a127f4e9a1a">H5Ropen_region</a> (<a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *ref_ptr, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> rapl_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oapl_id)</td></tr>
|
|
<tr class="memdesc:ga400154b014acd1736bae9a127f4e9a1a"><td class="mdescLeft"> </td><td class="mdescRight">Sets up a dataspace and selection as specified by a region reference. <br /></td></tr>
|
|
</table>
|
|
<a name="doc-define-members" id="doc-define-members"></a><h2 id="header-doc-define-members" class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="ga5dc19b9d1833af66c5e1f819f2c05c4a" name="ga5dc19b9d1833af66c5e1f819f2c05c4a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5dc19b9d1833af66c5e1f819f2c05c4a">◆ </a></span>H5Rdereference</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Rdereference   <a class="el" href="#ga9b09586f7b6ec708434dd8f95f58a9b7">H5Rdereference2</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#ga5dc19b9d1833af66c5e1f819f2c05c4a">H5Rdereference()</a> is a macro that is mapped to either <a class="el" href="#gafe7bbbc168c4836949c4c0b092654c45" title="Opens the HDF5 object referenced.">H5Rdereference1()</a> or <a class="el" href="#ga9b09586f7b6ec708434dd8f95f58a9b7" title="Opens the HDF5 object referenced.">H5Rdereference2()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html" title="API Compatibility Macros">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gafe413df448be0d230de922357fd7bc3b" name="gafe413df448be0d230de922357fd7bc3b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gafe413df448be0d230de922357fd7bc3b">◆ </a></span>H5Rget_obj_type</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Rget_obj_type   <a class="el" href="#ga766e39a76bcdd68dc514425353eff807">H5Rget_obj_type2</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#gafe413df448be0d230de922357fd7bc3b">H5Rget_obj_type()</a> is a macro that is mapped to either <a class="el" href="#gaf3736b2880a58471882b079b9f03defe" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type1()</a> or <a class="el" href="#ga766e39a76bcdd68dc514425353eff807" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type2()</a> or <a class="el" href="#ga6fb098a1a4c9369d76dbeeaf40d6d2af" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type3()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html" title="API Compatibility Macros">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
|
|
<a id="gad5b7b117cfaea90d1e4786304c58c55c" name="gad5b7b117cfaea90d1e4786304c58c55c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gad5b7b117cfaea90d1e4786304c58c55c">◆ </a></span>H5Rcopy()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rcopy </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>src_ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>dst_ref_ptr</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Copies an existing reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">src_ref_ptr</td><td>Pointer to reference to copy </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">dst_ref_ptr</td><td>Pointer to output reference</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gad5b7b117cfaea90d1e4786304c58c55c" title="Copies an existing reference.">H5Rcopy()</a> creates a copy of an existing reference. <code class="param">src_ref_ptr</code> points to the reference to copy, and <code class="param">dst_ref_ptr</code> is the pointer to the destination reference.</p>
|
|
<p>The function returns a <code class="param">dst_ref_ptr</code> pointer, which must be released using <a class="el" href="#ga026114e6c23588bf89bb473eb9e4d095" title="Closes a reference.">H5Rdestroy()</a> to avoid resource leaks and possible HDF5 library shutdown issues.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0ac6997b5de26b11d91a95de2869950d" name="ga0ac6997b5de26b11d91a95de2869950d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0ac6997b5de26b11d91a95de2869950d">◆ </a></span>H5Rcreate()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rcreate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>loc_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>space_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">ref</td><td>Reference created by the function call </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">loc_id</td><td>Location identifier used to locate the object being pointed to </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of object at location <code class="param">loc_id</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>Type of reference </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">space_id</td><td>Dataspace identifier with selection. Used only for dataset region references; pass as -1 if reference is an object reference, i.e., of type <a class="el" href="_h5_rpublic_8h.html#ae1ffa09875ca6778df3a577592dacbd2">H5R_OBJECT</a></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000092">Deprecated</a></b></dt><dd>As of HDF5-1.12, this function has been deprecated in favor of <a class="el" href="#gad0fb6ec99ecefa602756a5682addfc69" title="Creates an object reference.">H5Rcreate_object()</a>, <a class="el" href="#ga60134eb917afbe89aa23eb25a30d249b" title="Creates a region reference.">H5Rcreate_region()</a> and <a class="el" href="#gacae1bf2263befeac54d81f27995721f8" title="Creates an attribute reference.">H5Rcreate_attr()</a>.</dd></dl>
|
|
<p><a class="el" href="#ga0ac6997b5de26b11d91a95de2869950d" title="Creates a reference.">H5Rcreate()</a> creates the reference, <code class="param">ref</code>, of the type specified in <code class="param">ref_type</code>, pointing to the object <code class="param">name</code> located at <code class="param">loc_id</code>.</p>
|
|
<p>The HDF5 library maps the void type specified above for <code class="param">ref</code> to the type specified in <code class="param">ref_type</code>, which will be one of the following: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea4fc6b2cf09334d77851f8b208105d58f">H5R_BADTYPE</a> = (-1), </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae218034c065fc240fab1b2c709b7e23c">H5R_OBJECT1</a> = 0, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eac9d8cfad097bec7d118333303f67c916">H5R_DATASET_REGION1</a> = 1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea58376ddd57d594982e0034a3ca2e5bad">H5R_OBJECT2</a> = 2, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea2099d2dee8001ab3ce2e7041af5c93d6">H5R_DATASET_REGION2</a> = 3, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae63b3cfa3688767f46335fad6db981a5">H5R_ATTR</a> = 4, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eaa89d43156d194e6538203cf7f4b6bda0">H5R_MAXTYPE</a> = 5 </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a>;</div>
|
|
</div><!-- fragment --><p>The parameters <code class="param">loc_id</code> and <code class="param">name</code> are used to locate the object.</p>
|
|
<p>The parameter <code class="param">space_id</code> identifies the dataset region that a dataset region reference points to. This parameter is used only with dataset region references and should be set to -1 if the reference is an object reference, <a class="el" href="_h5_rpublic_8h.html#ae1ffa09875ca6778df3a577592dacbd2">H5R_OBJECT</a>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.0.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gacae1bf2263befeac54d81f27995721f8" name="gacae1bf2263befeac54d81f27995721f8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gacae1bf2263befeac54d81f27995721f8">◆ </a></span>H5Rcreate_attr()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rcreate_attr </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>loc_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>attr_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>oapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates an attribute reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">loc_id</td><td>Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">attr_name</td><td>Name of attribute </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oapl_id</td><td>Object access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">ref_ptr</td><td>Pointer to reference</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gacae1bf2263befeac54d81f27995721f8" title="Creates an attribute reference.">H5Rcreate_attr()</a> creates the reference, <code class="param">ref_ptr</code>, pointing to the attribute named <code class="param">attr_name</code> and attached to the object named <code class="param">name</code> located at <code class="param">loc_id</code>.</p>
|
|
<p>The parameters <code class="param">loc_id</code> and <code class="param">name</code> locate the object. The parameter <code class="param">attr_name</code> specifies the attribute within the object.</p>
|
|
<p>The parameter <code class="param">oapl_id</code> is an object access property list identifier for the object that the referenced attribute is attached to. The access property list must be of the same type as that object, that is a group, dataset or committed datatype property list.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><p>The function returns a <code class="param">ref_ptr</code> pointer, which must be released using <a class="el" href="#ga026114e6c23588bf89bb473eb9e4d095" title="Closes a reference.">H5Rdestroy()</a> to avoid resource leaks and possible HDF5 library shutdown issues.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gad0fb6ec99ecefa602756a5682addfc69" name="gad0fb6ec99ecefa602756a5682addfc69"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gad0fb6ec99ecefa602756a5682addfc69">◆ </a></span>H5Rcreate_object()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rcreate_object </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>loc_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>oapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates an object reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">loc_id</td><td>Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oapl_id</td><td>Object access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">ref_ptr</td><td>Pointer to reference</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gad0fb6ec99ecefa602756a5682addfc69" title="Creates an object reference.">H5Rcreate_object()</a> creates a reference pointing to the object named <code class="param">name</code> located at <code class="param">loc_id</code>. The parameters <code class="param">loc_id</code> and <code class="param">name</code> are used to locate the object.</p>
|
|
<p>The parameter <code class="param">oapl_id</code> is an object access property list identifier for the referenced object. The access property list must be of the same type as the object being referenced, that is a group, dataset or committed datatype property list.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><p>The function returns a <code class="param">ref_ptr</code> pointer, which must be released using <a class="el" href="#ga026114e6c23588bf89bb473eb9e4d095" title="Closes a reference.">H5Rdestroy()</a> to avoid resource leaks and possible HDF5 library shutdown issues.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga60134eb917afbe89aa23eb25a30d249b" name="ga60134eb917afbe89aa23eb25a30d249b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga60134eb917afbe89aa23eb25a30d249b">◆ </a></span>H5Rcreate_region()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rcreate_region </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>loc_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>space_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>oapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a region reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">loc_id</td><td>Location identifier. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">space_id</td><td>Dataspace identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oapl_id</td><td>Object access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">ref_ptr</td><td>Pointer to reference</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#ga60134eb917afbe89aa23eb25a30d249b" title="Creates a region reference.">H5Rcreate_region()</a> creates the reference, <code class="param">ref_ptr</code>, pointing to the region represented by <code class="param">space_id</code> within the object named name located at <code class="param">loc_id</code>.</p>
|
|
<p>The parameters <code class="param">loc_id</code> and <code class="param">name</code> are used to locate the object. The parameter <code class="param">space_id</code> identifies the dataset region that a dataset region reference points to.</p>
|
|
<p>The parameter <code class="param">oapl_id</code> is an object access property list identifier for the referenced object. The access property list must be of the same type as the object being referenced, that is a dataset property list in this case.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><p>The function returns a <code class="param">ref_ptr</code> pointer, which must be released using <a class="el" href="#ga026114e6c23588bf89bb473eb9e4d095" title="Closes a reference.">H5Rdestroy()</a> to avoid resource leaks and possible HDF5 library shutdown issues.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gafe7bbbc168c4836949c4c0b092654c45" name="gafe7bbbc168c4836949c4c0b092654c45"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gafe7bbbc168c4836949c4c0b092654c45">◆ </a></span>H5Rdereference1()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> H5Rdereference1 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>obj_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens the HDF5 object referenced. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">obj_id</td><td>Object identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>The reference type of <code class="param">ref</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref</td><td>Reference to open</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns identifier of referenced object if successful; otherwise returns a negative value.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000091">Deprecated</a></b></dt><dd>This function has been renamed from <a class="el" href="#ga5dc19b9d1833af66c5e1f819f2c05c4a">H5Rdereference()</a> and is deprecated in favor of the macro <a class="el" href="#ga5dc19b9d1833af66c5e1f819f2c05c4a">H5Rdereference()</a> or the function <a class="el" href="#ga9b09586f7b6ec708434dd8f95f58a9b7" title="Opens the HDF5 object referenced.">H5Rdereference2()</a>.</dd></dl>
|
|
<p>Given a reference, <code class="param">ref</code>, to an object or a region in an object, <a class="el" href="#gafe7bbbc168c4836949c4c0b092654c45" title="Opens the HDF5 object referenced.">H5Rdereference1()</a> opens that object and returns an identifier.</p>
|
|
<p>The parameter <code class="param">obj_id</code> must be a valid identifier for an object in the HDF5 file containing the referenced object, including the file identifier.</p>
|
|
<p>The parameter <code class="param">ref_type</code> specifies the reference type of the reference <code class="param">ref</code>. <code class="param">ref_type</code> may contain either of the following values:</p><ul>
|
|
<li><a class="el" href="_h5_rpublic_8h.html#ae1ffa09875ca6778df3a577592dacbd2">H5R_OBJECT</a></li>
|
|
<li><a class="el" href="_h5_rpublic_8h.html#a2a28c48c03a4616a02f9157fca4b2df0">H5R_DATASET_REGION</a></li>
|
|
</ul>
|
|
<p>The object opened with this function should be closed when it is no longer needed so that resource leaks will not develop. Use the appropriate close function, such as <a class="el" href="group___h5_o.html#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> or <a class="el" href="group___h5_d.html#gae47c3f38db49db127faf221624c30609" title="Closes the specified dataset.">H5Dclose()</a> for datasets.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.10.0 Function <a class="el" href="#ga5dc19b9d1833af66c5e1f819f2c05c4a">H5Rdereference()</a> renamed to <a class="el" href="#gafe7bbbc168c4836949c4c0b092654c45" title="Opens the HDF5 object referenced.">H5Rdereference1()</a> and deprecated in this release. </dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.0.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga9b09586f7b6ec708434dd8f95f58a9b7" name="ga9b09586f7b6ec708434dd8f95f58a9b7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga9b09586f7b6ec708434dd8f95f58a9b7">◆ </a></span>H5Rdereference2()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> H5Rdereference2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>obj_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>oapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens the HDF5 object referenced. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">obj_id</td><td>Object identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oapl_id</td><td>Object access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>The reference type of <code class="param">ref</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref</td><td>Reference to open</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns identifier of referenced object if successful; otherwise returns a negative value.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000093">Deprecated</a></b></dt><dd>As of HDF5-1.12, this function and <a class="el" href="#gafe7bbbc168c4836949c4c0b092654c45" title="Opens the HDF5 object referenced.">H5Rdereference1()</a> have been deprecated in favor of <a class="el" href="#ga2a00d73b9a13b9069d0ad39225dd9f71" title="Opens the HDF5 attribute referenced.">H5Ropen_attr()</a>, <a class="el" href="#gaa6692bd3a5b490c8db05b90a5888d0dd" title="Opens the HDF5 object referenced.">H5Ropen_object()</a> and <a class="el" href="#ga400154b014acd1736bae9a127f4e9a1a" title="Sets up a dataspace and selection as specified by a region reference.">H5Ropen_region()</a>.</dd></dl>
|
|
<p>Given a reference, <code class="param">ref</code>, to an object or a region in an object, <a class="el" href="#ga9b09586f7b6ec708434dd8f95f58a9b7" title="Opens the HDF5 object referenced.">H5Rdereference2()</a> opens that object and returns an identifier.</p>
|
|
<p>The parameter <code class="param">obj_id</code> must be a valid identifier for the HDF5 file containing the referenced object or for any object in that HDF5 file.</p>
|
|
<p>The parameter <code class="param">oapl_id</code> is an object access property list identifier for the referenced object. The access property list must be of the same type as the object being referenced, that is a group, dataset, or datatype property list.</p>
|
|
<p>The parameter <code class="param">ref_type</code> specifies the reference type of the reference <code class="param">ref</code>. <code class="param">ref_type</code> may contain either of the following values:</p><ul>
|
|
<li><a class="el" href="_h5_rpublic_8h.html#ae1ffa09875ca6778df3a577592dacbd2">H5R_OBJECT</a></li>
|
|
<li><a class="el" href="_h5_rpublic_8h.html#a2a28c48c03a4616a02f9157fca4b2df0">H5R_DATASET_REGION</a></li>
|
|
</ul>
|
|
<p>The object opened with this function should be closed when it is no longer needed so that resource leaks will not develop. Use the appropriate close function, such as <a class="el" href="group___h5_o.html#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> or <a class="el" href="group___h5_d.html#gae47c3f38db49db127faf221624c30609" title="Closes the specified dataset.">H5Dclose()</a> for datasets.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga026114e6c23588bf89bb473eb9e4d095" name="ga026114e6c23588bf89bb473eb9e4d095"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga026114e6c23588bf89bb473eb9e4d095">◆ </a></span>H5Rdestroy()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rdestroy </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Closes a reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p>Given a reference, <code class="param">ref_ptr</code>, to an object, region or attribute attached to an object, <a class="el" href="#ga026114e6c23588bf89bb473eb9e4d095" title="Closes a reference.">H5Rdestroy()</a> releases allocated resources from a previous create call.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga8d7dac2c604356f2fc657f36a201aea0" name="ga8d7dac2c604356f2fc657f36a201aea0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga8d7dac2c604356f2fc657f36a201aea0">◆ </a></span>H5Requal()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#aa8f6c28736dbd0f18388c67911d38aca">htri_t</a> H5Requal </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref1_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref2_ptr</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determines whether two references are equal. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref1_ptr</td><td>Pointer to reference to compare </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref2_ptr</td><td>Pointer to reference to compare</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a positive value if the references are equal. Returns 0 if the references are not equal. Returns a negative value when the function fails.</dd></dl>
|
|
<p><a class="el" href="#ga8d7dac2c604356f2fc657f36a201aea0" title="Determines whether two references are equal.">H5Requal()</a> determines whether two references point to the same object, region or attribute.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf9c6823346cc34f02b9f5d11e56344a0" name="gaf9c6823346cc34f02b9f5d11e56344a0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf9c6823346cc34f02b9f5d11e56344a0">◆ </a></span>H5Rget_attr_name()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ssize_t H5Rget_attr_name </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>size</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the attribute name for a referenced object. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to query </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>Buffer to place the attribute name of the reference </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>Size of the <code class="param">name</code> buffer</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns the length of the name if successful, otherwise, a negative value.</dd></dl>
|
|
<p><a class="el" href="#gaf9c6823346cc34f02b9f5d11e56344a0" title="Retrieves the attribute name for a referenced object.">H5Rget_attr_name()</a> retrieves the attribute name for the attribute reference pointed to by <code class="param">ref_ptr</code>.</p>
|
|
<p>Up to <code class="param">size</code> characters of the attribute name are returned in <code class="param">name</code>; additional characters, if any, are not returned to the user application.<br />
|
|
<br />
|
|
If the length of the attribute name, which determines the required value of <code class="param">size</code>, is unknown, a preliminary call to <a class="el" href="#gaf9c6823346cc34f02b9f5d11e56344a0" title="Retrieves the attribute name for a referenced object.">H5Rget_attr_name()</a> with the last two parameters set to NULL and zero respectively can be made. The return value of this call will be the size in bytes of the attribute name. That value, plus 1 for a NULL terminator, must then be assigned to <code class="param">size</code> for a second <a class="el" href="#gaf9c6823346cc34f02b9f5d11e56344a0" title="Retrieves the attribute name for a referenced object.">H5Rget_attr_name()</a> call, which will retrieve the actual attribute name.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga659d950e37122a59d50612b407a48900" name="ga659d950e37122a59d50612b407a48900"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga659d950e37122a59d50612b407a48900">◆ </a></span>H5Rget_file_name()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ssize_t H5Rget_file_name </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>size</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the file name for a referenced object. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to query </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>Buffer to place the file name of the reference </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>Size of the <code class="param">name</code> buffer. When the size is passed in, the <code>NULL</code> terminator needs to be included.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns the length of the name if successful, otherwise, a negative value.</dd></dl>
|
|
<p><a class="el" href="#ga659d950e37122a59d50612b407a48900" title="Retrieves the file name for a referenced object.">H5Rget_file_name()</a> retrieves the file name for the object, region or attribute reference pointed to by <code class="param">ref_ptr</code>.</p>
|
|
<p>Up to <code class="param">size</code> characters of the file name are returned in <code class="param">name</code>; additional characters, if any, are not returned to the user application.<br />
|
|
<br />
|
|
If the length of the file name, which determines the required value of <code class="param">size</code>, is unknown, a preliminary call to <a class="el" href="#ga659d950e37122a59d50612b407a48900" title="Retrieves the file name for a referenced object.">H5Rget_file_name()</a> with the last two parameters set to NULL and zero respectively can be made. The return value of this call will be the size in bytes of the file name. That value, plus 1 for a NULL terminator, must then be assigned to <code class="param">size</code> for a second <a class="el" href="#ga659d950e37122a59d50612b407a48900" title="Retrieves the file name for a referenced object.">H5Rget_file_name()</a> call, which will retrieve the actual file name.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga4c112c388f697324270fd085100dccaa" name="ga4c112c388f697324270fd085100dccaa"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga4c112c388f697324270fd085100dccaa">◆ </a></span>H5Rget_name()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ssize_t H5Rget_name </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>loc_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>size</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves a name for a referenced object. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">loc_id</td><td>Identifier for the file containing the reference or for any object in that file </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>Type of reference </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref</td><td>An object or dataset region reference </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>A buffer to place the name of the referenced object or dataset region. If <code>NULL</code>, then this call will return the size in bytes of the name. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The size of the <code class="param">name</code> buffer. When the size is passed in, the <code>NULL</code> terminator needs to be included.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns the length of the name if successful, returning 0 (zero) if no name is associated with the identifier. Otherwise returns a negative value.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000094">Deprecated</a></b></dt><dd>As of HDF5-1.12, this function has been deprecated in favor of <a class="el" href="#ga659d950e37122a59d50612b407a48900" title="Retrieves the file name for a referenced object.">H5Rget_file_name()</a>, <a class="el" href="#gac5a0a3a874cd3c4dc630579521539bb6" title="Retrieves the object name for a referenced object.">H5Rget_obj_name()</a> and <a class="el" href="#gaf9c6823346cc34f02b9f5d11e56344a0" title="Retrieves the attribute name for a referenced object.">H5Rget_attr_name()</a>.</dd></dl>
|
|
<p><a class="el" href="#ga4c112c388f697324270fd085100dccaa" title="Retrieves a name for a referenced object.">H5Rget_name()</a> retrieves a name for the object identified by <code class="param">ref</code>.<br />
|
|
<code class="param">loc_id</code> is used to identify the file containing the reference. It can be the file identifier for the file containing the reference or an identifier for any object in that file.</p>
|
|
<p><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e" title="H5R_type_t">H5R_type_t</a> is the reference type of <code class="param">ref</code>. Valid values include the following: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea4fc6b2cf09334d77851f8b208105d58f">H5R_BADTYPE</a> = (-1), </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae218034c065fc240fab1b2c709b7e23c">H5R_OBJECT1</a> = 0, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eac9d8cfad097bec7d118333303f67c916">H5R_DATASET_REGION1</a> = 1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea58376ddd57d594982e0034a3ca2e5bad">H5R_OBJECT2</a> = 2, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea2099d2dee8001ab3ce2e7041af5c93d6">H5R_DATASET_REGION2</a> = 3, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae63b3cfa3688767f46335fad6db981a5">H5R_ATTR</a> = 4, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eaa89d43156d194e6538203cf7f4b6bda0">H5R_MAXTYPE</a> = 5 </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a>;</div>
|
|
</div><!-- fragment --><p><code class="param">ref</code> is the reference for which the target object's name is sought.</p>
|
|
<p>If <code class="param">ref</code> is an object reference, <code class="param">name</code> will be returned with a name for the referenced object. If <code class="param">ref</code> is a dataset region reference, <code class="param">name</code> will contain a name for the object containing the referenced region.</p>
|
|
<p>Up to <code class="param">size</code> characters of the name are returned in <code class="param">name</code>; additional characters, if any, are not returned to the user application.<br />
|
|
<br />
|
|
If the length of the name, which determines the required value of <code class="param">size</code>, is unknown, a preliminary call to <a class="el" href="#ga4c112c388f697324270fd085100dccaa" title="Retrieves a name for a referenced object.">H5Rget_name()</a> with the last two parameters set to NULL and zero respectively can be made. The return value of this call will be the size in bytes of the name. That value, plus 1 for a NULL terminator, must then be assigned to <code class="param">size</code> for a second <a class="el" href="#ga4c112c388f697324270fd085100dccaa" title="Retrieves a name for a referenced object.">H5Rget_name()</a> call, which will retrieve the actual name.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>An object in an HDF5 file may have multiple paths if multiple links point to it. This function may return any one of these paths.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac5a0a3a874cd3c4dc630579521539bb6" name="gac5a0a3a874cd3c4dc630579521539bb6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac5a0a3a874cd3c4dc630579521539bb6">◆ </a></span>H5Rget_obj_name()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">ssize_t H5Rget_obj_name </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>rapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>size</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the object name for a referenced object. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to query </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">rapl_id</td><td>Reference access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>Buffer to place the object name of the reference </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>Size of the <code class="param">name</code> buffer. When the size is passed in, the <code>NULL</code> terminator needs to be included.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns the length of the name if successful, returning 0 (zero) if no name is associated with the identifier. Otherwise returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gac5a0a3a874cd3c4dc630579521539bb6" title="Retrieves the object name for a referenced object.">H5Rget_obj_name()</a> retrieves the object name for the object, region or attribute reference pointed to by <code class="param">ref_ptr</code>.</p>
|
|
<p>The parameter <code class="param">rapl_id</code> is a reference access property list identifier for the reference. The access property list can be used to access external files that the reference points to (through a file access property list).</p>
|
|
<p>Up to <code class="param">size</code> characters of the object name are returned in <code class="param">name</code>; additional characters, if any, are not returned to the user application.<br />
|
|
<br />
|
|
If the length of the object name, which determines the required value of <code class="param">size</code>, is unknown, a preliminary call to <a class="el" href="#gac5a0a3a874cd3c4dc630579521539bb6" title="Retrieves the object name for a referenced object.">H5Rget_obj_name()</a> with the last two parameters set to NULL and zero respectively can be made. The return value of this call will be the size in bytes of the object name. That value, plus 1 for a NULL terminator, must then be assigned to <code class="param">size</code> for a second <a class="el" href="#gac5a0a3a874cd3c4dc630579521539bb6" title="Retrieves the object name for a referenced object.">H5Rget_obj_name()</a> call, which will retrieve the actual object name.</p>
|
|
<p>If <code class="param">ref_ptr</code> is an object reference, <code class="param">name</code> will be returned with a name for the referenced object. If <code class="param">ref_ptr</code> is a dataset region reference, <code class="param">name</code> will contain a name for the object containing the referenced region. If <code class="param">ref_ptr</code> is an attribute reference, <code class="param">name</code> will contain a name for the object the attribute is attached to. Note that an object in an HDF5 file may have multiple paths if there are multiple links pointing to it. This function may return any one of these paths.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf3736b2880a58471882b079b9f03defe" name="gaf3736b2880a58471882b079b9f03defe"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf3736b2880a58471882b079b9f03defe">◆ </a></span>H5Rget_obj_type1()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6">H5G_obj_t</a> H5Rget_obj_type1 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the type of object that an object reference points to. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">id</td><td>The dataset containing the reference object or the group containing that dataset </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>Type of reference to query </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref</td><td>Reference to query</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a valid object type if successful; otherwise returns a negative value (<code>H5G_UNKNOWN</code>).</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000090">Deprecated</a></b></dt><dd>This function has been renamed from <a class="el" href="#gafe413df448be0d230de922357fd7bc3b">H5Rget_obj_type()</a> and is deprecated in favor of the macro <a class="el" href="#gafe413df448be0d230de922357fd7bc3b">H5Rget_obj_type()</a> or the function <a class="el" href="#ga766e39a76bcdd68dc514425353eff807" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type2()</a>.</dd></dl>
|
|
<p>Given an object reference, <code class="param">ref</code>, <a class="el" href="#gaf3736b2880a58471882b079b9f03defe" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type1()</a> returns the type of the referenced object.</p>
|
|
<p>A <em>reference type</em> is the type of reference, either an object reference or a dataset region reference. An <em>object reference</em> points to an HDF5 object, while a <em>dataset region reference</em> points to a defined region within a dataset.</p>
|
|
<p>The <em>referenced object</em> is the object the reference points to. The <em>referenced object type</em>, or the type of the referenced object, is the type of the object that the reference points to.</p>
|
|
<p>The location identifier, <code class="param">id</code>, is the identifier for either the dataset containing the object reference or the group containing that dataset.</p>
|
|
<p>Valid reference types, to pass in as <code class="param">ref_type</code>, include the following: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea4fc6b2cf09334d77851f8b208105d58f">H5R_BADTYPE</a> = (-1), </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae218034c065fc240fab1b2c709b7e23c">H5R_OBJECT1</a> = 0, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eac9d8cfad097bec7d118333303f67c916">H5R_DATASET_REGION1</a> = 1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea58376ddd57d594982e0034a3ca2e5bad">H5R_OBJECT2</a> = 2, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea2099d2dee8001ab3ce2e7041af5c93d6">H5R_DATASET_REGION2</a> = 3, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae63b3cfa3688767f46335fad6db981a5">H5R_ATTR</a> = 4, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eaa89d43156d194e6538203cf7f4b6bda0">H5R_MAXTYPE</a> = 5 </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a>;</div>
|
|
</div><!-- fragment --><p>If the application does not already know the object reference type, that can be determined with three preliminary calls:</p>
|
|
<ul>
|
|
<li>Call <a class="el" href="group___h5_d.html#ga7cd04b8332e8a0939b9973fbc500cadb" title="Returns an identifier for a copy of the datatype for a dataset.">H5Dget_type()</a> on the dataset containing the reference to get a datatype identifier for the dataset's datatype. </li>
|
|
<li>Using that datatype identifier, <a class="el" href="group___h5_t.html#ga364545c053f925fec65880b235e37898" title="Returns a datatype class.">H5Tget_class()</a> returns a datatype class.<br />
|
|
If the datatype class is <a class="el" href="_h5_tpublic_8h.html#a071841985f647f69516dbe77d93167f2a5850e0b9353a5e7aeb615fb943d4e9cd">H5T_REFERENCE</a>, <a class="el" href="group___h5_t.html#gaa92250f289b557b63cba974defa20b0f" title="Determines whether two datatype identifiers refer to the same datatype.">H5Tequal()</a> can then be used to determine whether the reference's datatype is <a class="el" href="group___p_d_t_s_t_d.html#gadc17e0960dc7ef08e029bf17201670e1">H5T_STD_REF_OBJ</a> or <a class="el" href="group___p_d_t_s_t_d.html#gaf5cb0d5cec3d40d8b3ac27512f86895e">H5T_STD_REF_DSETREG</a>:<ul>
|
|
<li>If the datatype is <a class="el" href="group___p_d_t_s_t_d.html#gadc17e0960dc7ef08e029bf17201670e1">H5T_STD_REF_OBJ</a>, the reference object type is <a class="el" href="_h5_rpublic_8h.html#ae1ffa09875ca6778df3a577592dacbd2">H5R_OBJECT</a>.</li>
|
|
<li>If the datatype is <a class="el" href="group___p_d_t_s_t_d.html#gaf5cb0d5cec3d40d8b3ac27512f86895e">H5T_STD_REF_DSETREG</a>, the reference object type is <a class="el" href="_h5_rpublic_8h.html#a2a28c48c03a4616a02f9157fca4b2df0">H5R_DATASET_REGION</a>.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<p>When the function completes successfully, it returns one of the following valid object type values (defined in <a class="el" href="_h5_gpublic_8h.html">H5Gpublic.h</a>): </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6">H5G_obj_t</a> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a45d6844bdf74176be3b846d007f8c740">H5G_UNKNOWN</a> = -1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a5797c5320135bb6d2d95e4ac65c3f165">H5G_GROUP</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a76b698867a009f71f14db4e18a0a74e7">H5G_DATASET</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a1e1ef9abeaee9ae9b93ee7ecd05243ef">H5G_TYPE</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a0043526475bbfd89e75a77d2868c7a6c">H5G_LINK</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a9d73a648e21cacd56c1b93d1d75f67d3">H5G_UDLINK</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a8c0a2907854311285cd7bf5ab5562404">H5G_RESERVED_5</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6a5fd24183914c12dd049f433cb6db2ff1">H5G_RESERVED_6</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6aeb72828acc9addd40e217c9303e43be2">H5G_RESERVED_7</a> </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_gpublic_8h.html#a4ee921b13233a7c297b81a49022a1dd6">H5G_obj_t</a>;</div>
|
|
</div><!-- fragment --><dl class="section version"><dt>Version</dt><dd>1.8.0 Function <a class="el" href="#gafe413df448be0d230de922357fd7bc3b">H5Rget_obj_type()</a> renamed to <a class="el" href="#gaf3736b2880a58471882b079b9f03defe" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type1()</a> and deprecated in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.2.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga766e39a76bcdd68dc514425353eff807" name="ga766e39a76bcdd68dc514425353eff807"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga766e39a76bcdd68dc514425353eff807">◆ </a></span>H5Rget_obj_type2()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rget_obj_type2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> *</td> <td class="paramname"><span class="paramname"><em>obj_type</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the type of object that an object reference points to. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">id</td><td>The dataset containing the reference object or the group containing that dataset </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>Type of reference to query </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref</td><td>Reference to query </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">obj_type</td><td>Type of referenced object</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p>Given an object reference, <code class="param">ref</code>, <a class="el" href="#ga766e39a76bcdd68dc514425353eff807" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type2()</a> returns the type of the referenced object in <code class="param">obj_type</code>.</p>
|
|
<p>A <em>reference type</em> is the type of reference, either an object reference or a dataset region reference. An <em>object reference</em> points to an HDF5 object while a <em>dataset region reference</em> points to a defined region within a dataset.</p>
|
|
<p>The <em>referenced object</em> is the object the reference points to. The <em>referenced object type</em>, or the type of the referenced object, is the type of the object that the reference points to.</p>
|
|
<p>The location identifier, <code class="param">id</code>, is the identifier for either the dataset containing the object reference or the group containing that dataset.</p>
|
|
<p>Valid reference types, to pass in as <code class="param">ref_type</code>, include the following: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea4fc6b2cf09334d77851f8b208105d58f">H5R_BADTYPE</a> = (-1), </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae218034c065fc240fab1b2c709b7e23c">H5R_OBJECT1</a> = 0, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eac9d8cfad097bec7d118333303f67c916">H5R_DATASET_REGION1</a> = 1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea58376ddd57d594982e0034a3ca2e5bad">H5R_OBJECT2</a> = 2, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea2099d2dee8001ab3ce2e7041af5c93d6">H5R_DATASET_REGION2</a> = 3, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae63b3cfa3688767f46335fad6db981a5">H5R_ATTR</a> = 4, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eaa89d43156d194e6538203cf7f4b6bda0">H5R_MAXTYPE</a> = 5 </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a>;</div>
|
|
</div><!-- fragment --><p>If the application does not already know the object reference type, that can be determined with three preliminary calls:</p>
|
|
<ul>
|
|
<li>Call <a class="el" href="group___h5_d.html#ga7cd04b8332e8a0939b9973fbc500cadb" title="Returns an identifier for a copy of the datatype for a dataset.">H5Dget_type()</a> on the dataset containing the reference to get a datatype identifier for the dataset's datatype. </li>
|
|
<li>Using that datatype identifier, <a class="el" href="group___h5_t.html#ga364545c053f925fec65880b235e37898" title="Returns a datatype class.">H5Tget_class()</a> returns a datatype class.<br />
|
|
If the datatype class is <a class="el" href="_h5_tpublic_8h.html#a071841985f647f69516dbe77d93167f2a5850e0b9353a5e7aeb615fb943d4e9cd">H5T_REFERENCE</a>, <a class="el" href="group___h5_t.html#gaa92250f289b557b63cba974defa20b0f" title="Determines whether two datatype identifiers refer to the same datatype.">H5Tequal()</a> can then be used to determine whether the reference's datatype is <a class="el" href="group___p_d_t_s_t_d.html#gadc17e0960dc7ef08e029bf17201670e1">H5T_STD_REF_OBJ</a> or <a class="el" href="group___p_d_t_s_t_d.html#gaf5cb0d5cec3d40d8b3ac27512f86895e">H5T_STD_REF_DSETREG</a>:<ul>
|
|
<li>If the datatype is <a class="el" href="group___p_d_t_s_t_d.html#gadc17e0960dc7ef08e029bf17201670e1">H5T_STD_REF_OBJ</a>, the reference object type is <a class="el" href="_h5_rpublic_8h.html#ae1ffa09875ca6778df3a577592dacbd2">H5R_OBJECT</a>.</li>
|
|
<li>If the datatype is <a class="el" href="group___p_d_t_s_t_d.html#gaf5cb0d5cec3d40d8b3ac27512f86895e">H5T_STD_REF_DSETREG</a>, the reference object type is <a class="el" href="_h5_rpublic_8h.html#a2a28c48c03a4616a02f9157fca4b2df0">H5R_DATASET_REGION</a>.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<p>When the function completes successfully, it returns one of the following valid object type values (defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a>): </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca77b7f6c4f4a5dc7463b868876e303d20">H5O_TYPE_UNKNOWN</a> = -1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecadab6343bd9f2c6d54d07816d5d823cf8">H5O_TYPE_GROUP</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca5ca744a77f8cd2b28dda90c37807ae31">H5O_TYPE_DATASET</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecaaf17b046771c311d41bed7383874050e">H5O_TYPE_NAMED_DATATYPE</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca284c0f71c6d5986d1d62a5beea599468">H5O_TYPE_MAP</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecaedfc23c7f5f047b0ca4b03608661ec79">H5O_TYPE_NTYPES</a> </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a>;</div>
|
|
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6fb098a1a4c9369d76dbeeaf40d6d2af" name="ga6fb098a1a4c9369d76dbeeaf40d6d2af"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6fb098a1a4c9369d76dbeeaf40d6d2af">◆ </a></span>H5Rget_obj_type3()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> H5Rget_obj_type3 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>rapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> *</td> <td class="paramname"><span class="paramname"><em>obj_type</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the type of object that an object reference points to. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to query </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">rapl_id</td><td>Reference access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">obj_type</td><td>Type of referenced object</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p>Given a reference, <code class="param">ref_ptr</code>, <a class="el" href="#ga6fb098a1a4c9369d76dbeeaf40d6d2af" title="Retrieves the type of object that an object reference points to.">H5Rget_obj_type3()</a> retrieves the type of the referenced object in <code class="param">obj_type</code>.</p>
|
|
<p>The parameter <code class="param">rapl</code> id is a reference access property list identifier for the reference. The access property list can be used to access external files that the reference points to (through a file access property list).</p>
|
|
<p>Upon success, the function returns in <code class="param">obj_type</code> the type of the object that the reference points to. Valid values for this referenced object type are as followed (defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a>): </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca77b7f6c4f4a5dc7463b868876e303d20">H5O_TYPE_UNKNOWN</a> = -1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecadab6343bd9f2c6d54d07816d5d823cf8">H5O_TYPE_GROUP</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca5ca744a77f8cd2b28dda90c37807ae31">H5O_TYPE_DATASET</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecaaf17b046771c311d41bed7383874050e">H5O_TYPE_NAMED_DATATYPE</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca284c0f71c6d5986d1d62a5beea599468">H5O_TYPE_MAP</a>, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecaedfc23c7f5f047b0ca4b03608661ec79">H5O_TYPE_NTYPES</a> </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a>;</div>
|
|
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga1702d609e85b9edd3d1e526a0276484f" name="ga1702d609e85b9edd3d1e526a0276484f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga1702d609e85b9edd3d1e526a0276484f">◆ </a></span>H5Rget_region()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> H5Rget_region </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>dataset</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a></td> <td class="paramname"><span class="paramname"><em>ref_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const void *</td> <td class="paramname"><span class="paramname"><em>ref</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets up a dataspace and selection as specified by a region reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">dataset</td><td>File identifier or identifier for any object in the file containing the referenced region </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_type</td><td>Reference type of <code class="param">ref</code>, which must be <a class="el" href="_h5_rpublic_8h.html#a2a28c48c03a4616a02f9157fca4b2df0">H5R_DATASET_REGION</a> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref</td><td>Region reference to open</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a valid dataspace identifier if successful; otherwise returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#ga1702d609e85b9edd3d1e526a0276484f" title="Sets up a dataspace and selection as specified by a region reference.">H5Rget_region()</a> creates a copy of the dataspace of the dataset pointed to by a region reference, <code class="param">ref</code>, and defines a selection matching the selection pointed to by ref within the dataspace copy.</p>
|
|
<p><code class="param">dataset</code> is used to identify the file containing the referenced region; it can be a file identifier or an identifier for any object in the file.</p>
|
|
<p>The parameter <code class="param">ref_type</code> specifies the reference type of <code class="param">ref</code> and must contain the value <a class="el" href="_h5_rpublic_8h.html#a2a28c48c03a4616a02f9157fca4b2df0">H5R_DATASET_REGION</a>.</p>
|
|
<p>Use <a class="el" href="group___h5_s.html#ga2b53128a39c8f104c1c9c2a91590fcc1" title="Releases and terminates access to a dataspace.">H5Sclose()</a> to release the dataspace identifier returned by this function when the identifier is no longer needed.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.0.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga56989d33835ec289269d366dc28aa4ad" name="ga56989d33835ec289269d366dc28aa4ad"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga56989d33835ec289269d366dc28aa4ad">◆ </a></span>H5Rget_type()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a> H5Rget_type </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the type of a reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a valid reference type if successful; otherwise returns <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea4fc6b2cf09334d77851f8b208105d58f">H5R_BADTYPE</a> .</dd></dl>
|
|
<p>Given a reference, <code class="param">ref_ptr</code>, <a class="el" href="#ga56989d33835ec289269d366dc28aa4ad" title="Retrieves the type of a reference.">H5Rget_type()</a> returns the type of the reference.</p>
|
|
<p>Valid returned reference types are: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea4fc6b2cf09334d77851f8b208105d58f">H5R_BADTYPE</a> = (-1), </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae218034c065fc240fab1b2c709b7e23c">H5R_OBJECT1</a> = 0, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eac9d8cfad097bec7d118333303f67c916">H5R_DATASET_REGION1</a> = 1, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea58376ddd57d594982e0034a3ca2e5bad">H5R_OBJECT2</a> = 2, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056ea2099d2dee8001ab3ce2e7041af5c93d6">H5R_DATASET_REGION2</a> = 3, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae63b3cfa3688767f46335fad6db981a5">H5R_ATTR</a> = 4, </div>
|
|
<div class="line"> <a class="code hl_enumvalue" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eaa89d43156d194e6538203cf7f4b6bda0">H5R_MAXTYPE</a> = 5 </div>
|
|
<div class="line">} <a class="code hl_enumeration" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056e">H5R_type_t</a>;</div>
|
|
</div><!-- fragment --><p>Note that <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eae218034c065fc240fab1b2c709b7e23c">H5R_OBJECT1</a> and <a class="el" href="_h5_rpublic_8h.html#a7d148ddc165e65b01efabfd738ac056eac9d8cfad097bec7d118333303f67c916">H5R_DATASET_REGION1</a> can never be associated with an <a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> reference and can, therefore, never be returned through that function.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2a00d73b9a13b9069d0ad39225dd9f71" name="ga2a00d73b9a13b9069d0ad39225dd9f71"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2a00d73b9a13b9069d0ad39225dd9f71">◆ </a></span>H5Ropen_attr()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> H5Ropen_attr </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>rapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>aapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens the HDF5 attribute referenced. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to open </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">rapl_id</td><td>Reference access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">aapl_id</td><td>Attribute access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a attribute identifier if successful; otherwise returns <a class="el" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>.</dd></dl>
|
|
<p>Given a reference, <code class="param">ref_ptr</code>, to an attribute attached to an object, <a class="el" href="#ga2a00d73b9a13b9069d0ad39225dd9f71" title="Opens the HDF5 attribute referenced.">H5Ropen_attr()</a> opens the attribute attached to that object and returns an identifier.</p>
|
|
<p>The parameter <code class="param">rapl</code> id is a reference access property list identifier for the reference. The access property list can be used to access external files that the reference points to (through a file access property list).</p>
|
|
<p>The parameter <code class="param">aapl_id</code> is an attribute access property list identifier for the referenced attribute.</p>
|
|
<p>The attribute opened with this function should be closed with <a class="el" href="group___h5_a.html#gaef4394b661e2c930879e9868e122bdda" title="Closes the specified attribute.">H5Aclose()</a> when it is no longer needed.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa6692bd3a5b490c8db05b90a5888d0dd" name="gaa6692bd3a5b490c8db05b90a5888d0dd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa6692bd3a5b490c8db05b90a5888d0dd">◆ </a></span>H5Ropen_object()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> H5Ropen_object </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>rapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>oapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens the HDF5 object referenced. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to open </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">rapl_id</td><td>Reference access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oapl_id</td><td>Object access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a object identifier if successful; otherwise returns <a class="el" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>.</dd></dl>
|
|
<p>Given a reference, <code class="param">ref_ptr</code>, to an object, a region in an object, or an attribute attached to an object, <a class="el" href="#gaa6692bd3a5b490c8db05b90a5888d0dd" title="Opens the HDF5 object referenced.">H5Ropen_object()</a> opens that object and returns an identifier.</p>
|
|
<p>The parameter <code class="param">oapl_id</code> is an object access property list identifier for the referenced object. The access property list must be of the same type as the object being referenced, that is a group or dataset property list.</p>
|
|
<p><a class="el" href="struct_h5_r__ref__t.html" title="H5R_ref_t">H5R_ref_t</a> is defined in <a class="el" href="_h5_rpublic_8h.html">H5Rpublic.h</a> as: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"> <span class="keyword">union </span>{</div>
|
|
<div class="line"> uint8_t __data[<a class="code hl_define" href="_h5_rpublic_8h.html#a30e65b87f330f177dc5ae434104af580">H5R_REF_BUF_SIZE</a>]; </div>
|
|
<div class="line"> int64_t align; </div>
|
|
<div class="line"> } u;</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_r__ref__t.html">H5R_ref_t</a>;</div>
|
|
</div><!-- fragment --><p>The object opened with this function should be closed when it is no longer needed so that resource leaks will not develop. Use the appropriate close function, such as <a class="el" href="group___h5_o.html#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> or <a class="el" href="group___h5_d.html#gae47c3f38db49db127faf221624c30609" title="Closes the specified dataset.">H5Dclose()</a> for datasets.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga400154b014acd1736bae9a127f4e9a1a" name="ga400154b014acd1736bae9a127f4e9a1a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga400154b014acd1736bae9a127f4e9a1a">◆ </a></span>H5Ropen_region()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> H5Ropen_region </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_r__ref__t.html">H5R_ref_t</a> *</td> <td class="paramname"><span class="paramname"><em>ref_ptr</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>rapl_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></td> <td class="paramname"><span class="paramname"><em>oapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets up a dataspace and selection as specified by a region reference. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ref_ptr</td><td>Pointer to reference to open </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">rapl_id</td><td>Reference access property list identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oapl_id</td><td>Object access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a dataspace identifier if successful; otherwise returns <a class="el" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>.</dd></dl>
|
|
<p><a class="el" href="#ga400154b014acd1736bae9a127f4e9a1a" title="Sets up a dataspace and selection as specified by a region reference.">H5Ropen_region()</a> creates a copy of the dataspace of the dataset pointed to by a region reference, <code class="param">ref_ptr</code>, and defines a selection matching the selection pointed to by <code class="param">ref_ptr</code> within the dataspace copy.</p>
|
|
<p>The parameter <code class="param">rapl</code> id is a reference access property list identifier for the reference. The access property list can be used to access external files that the reference points to (through a file access property list).</p>
|
|
<p>The parameter <code class="param">oapl</code> id is an object access property list identifier for the referenced object. The access property list must be of the same type as the object being referenced, that is a dataset property list in that case.</p>
|
|
<p>Use <a class="el" href="group___h5_s.html#ga2b53128a39c8f104c1c9c2a91590fcc1" title="Releases and terminates access to a dataspace.">H5Sclose()</a> to release the dataspace identifier returned by this function when the identifier is no longer needed.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div id="page-nav" class="page-nav-panel">
|
|
<div id="page-nav-resize-handle"></div>
|
|
<div id="page-nav-tree">
|
|
<div id="page-nav-contents">
|
|
</div><!-- page-nav-contents -->
|
|
</div><!-- page-nav-tree -->
|
|
</div><!-- page-nav -->
|
|
</div><!-- container -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.16.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|