mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-10-10 23:44:00 +03:00
3006 lines
308 KiB
HTML
3006 lines
308 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.13.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>HDF5: Objects (H5O)</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="resize.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">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { init_search(); });
|
|
/* @license-end */
|
|
</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">Please, help us to better serve our user community by answering the following 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 2025-09-08</span>
|
|
</div>
|
|
<div id="projectbrief">The HDF5 Field Guide</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.13.2 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<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" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </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()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</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">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){initNavTree('group___h5_o.html',''); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<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="summary">
|
|
<a href="#define-members">Macros</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle"><div class="title">Objects (H5O)</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>Use the functions in this module to manage HDF5 objects.</p>
|
|
<p>HDF5 objects (groups, datasets, datatype objects) are usually created using functions in the object-specific modules (<a class="el" href="group___h5_g.html">Groups (H5G)</a>, <a class="el" href="group___h5_d.html">Datasets (H5D)</a>, <a class="el" href="group___h5_t.html">Datatypes (H5T)</a>). However, new objects can also be created by copying existing objects.</p>
|
|
<p>Many functions in this module are variations on object introspection, that is, the retrieval of detailed information about HDF5 objects in a file. Objects in an HDF5 file can be "visited" in an iterative fashion.</p>
|
|
<p>HDF5 objects are usually updated using functions in the object-specific modules. However, there are certain generic object properties, such as reference counts, that can be manipulated using functions in this module.</p>
|
|
<p>HDF5 objects are deleted as a side effect of rendering them unreachable from the root group. The net effect is the diminution of the object's reference count to zero, which can (but should not usually) be affected by a function in this module.</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<th>Create</th><th>Read </th></tr>
|
|
<tr valign="top">
|
|
<td><div class="fragment"><div class="line"><span class="lineno"> 16</span> {</div>
|
|
<div class="line"><span class="lineno"> 17</span> __label__ fail_file;</div>
|
|
<div class="line"><span class="lineno"> 18</span> <a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> file, group;</div>
|
|
<div class="line"><span class="lineno"> 19</span> <span class="keywordtype">char</span> src_path[] = <span class="stringliteral">"/a/few/groups"</span>;</div>
|
|
<div class="line"><span class="lineno"> 20</span> </div>
|
|
<div class="line"><span class="lineno"> 21</span> <span class="keywordflow">if</span> ((file = <a class="code hl_function" href="group___h5_f.html#gae64b51ee9ac0781bc4ccc599d98387f4">H5Fcreate</a>(<span class="stringliteral">"o1.h5"</span>, <a class="code hl_define" href="_h5_fpublic_8h.html#a5a2d6726f9ad8d2bca8df2b817e5ad6a">H5F_ACC_TRUNC</a>, H5P_DEFAULTx2)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 22</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 23</span> <span class="keywordflow">goto</span> fail_file;</div>
|
|
<div class="line"><span class="lineno"> 24</span> }</div>
|
|
<div class="line"><span class="lineno"> 25</span> </div>
|
|
<div class="line"><span class="lineno"> 26</span> <span class="comment">// create a few groups</span></div>
|
|
<div class="line"><span class="lineno"> 27</span> {</div>
|
|
<div class="line"><span class="lineno"> 28</span> __label__ fail_group, fail_lcpl;</div>
|
|
<div class="line"><span class="lineno"> 29</span> <a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lcpl;</div>
|
|
<div class="line"><span class="lineno"> 30</span> <span class="keywordflow">if</span> ((lcpl = <a class="code hl_function" href="group___p_l_c_r.html#gaf1b11da01d4d45d788c45f8bc5f0cbfa">H5Pcreate</a>(<a class="code hl_define" href="_h5_ppublic_8h.html#ad2c1d10104f0262c826350ccbf7c49f2">H5P_LINK_CREATE</a>)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 31</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 32</span> <span class="keywordflow">goto</span> fail_lcpl;</div>
|
|
<div class="line"><span class="lineno"> 33</span> }</div>
|
|
<div class="line"><span class="lineno"> 34</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="group___l_c_p_l.html#ga66c4c5d3f34e5cf65d00e47a5387383c">H5Pset_create_intermediate_group</a>(lcpl, 1) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 35</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">goto</span> fail_group;</div>
|
|
<div class="line"><span class="lineno"> 37</span> }</div>
|
|
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">if</span> ((group = <a class="code hl_define" href="group___h5_g.html#ga187cee27a9fc4f1a311eb19b0522c7b8">H5Gcreate</a>(file, src_path, lcpl, H5P_DEFAULTx2)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 39</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 40</span> <span class="keywordflow">goto</span> fail_group;</div>
|
|
<div class="line"><span class="lineno"> 41</span> }</div>
|
|
<div class="line"><span class="lineno"> 42</span> </div>
|
|
<div class="line"><span class="lineno"> 43</span> <a class="code hl_function" href="group___h5_g.html#ga8dbe20b390d2504f0bd3589ed8f4e221">H5Gclose</a>(group);</div>
|
|
<div class="line"><span class="lineno"> 44</span>fail_group:</div>
|
|
<div class="line"><span class="lineno"> 45</span> <a class="code hl_function" href="group___p_l_c_r.html#ga5dce61149211d3ef319452aa598887fb">H5Pclose</a>(lcpl);</div>
|
|
<div class="line"><span class="lineno"> 46</span>fail_lcpl:;</div>
|
|
<div class="line"><span class="lineno"> 47</span> }</div>
|
|
<div class="line"><span class="lineno"> 48</span> </div>
|
|
<div class="line"><span class="lineno"> 49</span> <span class="comment">// create a copy</span></div>
|
|
<div class="line"><span class="lineno"> 50</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#gaa94449be6f67f499be5ddd3fc44f4225">H5Ocopy</a>(file, <span class="stringliteral">"."</span>, file, <span class="stringliteral">"copy of"</span>, H5P_DEFAULTx2) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 51</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 52</span> }</div>
|
|
<div class="line"><span class="lineno"> 53</span> </div>
|
|
<div class="line"><span class="lineno"> 54</span> <a class="code hl_function" href="group___h5_f.html#gac55cd91d80822e4f8c2a7f04ea71b124">H5Fclose</a>(file);</div>
|
|
<div class="line"><span class="lineno"> 55</span>fail_file:;</div>
|
|
<div class="line"><span class="lineno"> 56</span> }</div>
|
|
</div><!-- fragment --> </td><td><div class="fragment"><div class="line"><span class="lineno"> 60</span> {</div>
|
|
<div class="line"><span class="lineno"> 61</span> __label__ fail_info, fail_file;</div>
|
|
<div class="line"><span class="lineno"> 62</span> <a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> file;</div>
|
|
<div class="line"><span class="lineno"> 63</span> <span class="keywordtype">char</span> path[] = <span class="stringliteral">"/a/few/groups"</span>;</div>
|
|
<div class="line"><span class="lineno"> 64</span> <a class="code hl_struct" href="struct_h5_o__info2__t.html">H5O_info2_t</a> info;</div>
|
|
<div class="line"><span class="lineno"> 65</span> </div>
|
|
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">if</span> ((file = <a class="code hl_function" href="group___h5_f.html#gaa3f4f877b9bb591f3880423ed2bf44bc">H5Fopen</a>(<span class="stringliteral">"o1.h5"</span>, <a class="code hl_define" href="_h5_fpublic_8h.html#a1c406ffa89f4acf5a332144a2683d394">H5F_ACC_RDONLY</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 67</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 68</span> <span class="keywordflow">goto</span> fail_file;</div>
|
|
<div class="line"><span class="lineno"> 69</span> }</div>
|
|
<div class="line"><span class="lineno"> 70</span> </div>
|
|
<div class="line"><span class="lineno"> 71</span> <span class="comment">// retrieve information about the object</span></div>
|
|
<div class="line"><span class="lineno"> 72</span> <span class="keywordflow">if</span> (<a class="code hl_define" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name</a>(file, path, &info, <a class="code hl_define" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="code hl_define" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 73</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 74</span> <span class="keywordflow">goto</span> fail_info;</div>
|
|
<div class="line"><span class="lineno"> 75</span> }</div>
|
|
<div class="line"><span class="lineno"> 76</span> </div>
|
|
<div class="line"><span class="lineno"> 77</span> <span class="comment">// determine the object type</span></div>
|
|
<div class="line"><span class="lineno"> 78</span> <span class="keywordflow">switch</span> (info.<a class="code hl_variable" href="struct_h5_o__info2__t.html#a6e12ef8203e400ee995a41a24e981539">type</a>) {</div>
|
|
<div class="line"><span class="lineno"> 79</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecadab6343bd9f2c6d54d07816d5d823cf8">H5O_TYPE_GROUP</a>:</div>
|
|
<div class="line"><span class="lineno"> 80</span> printf(<span class="stringliteral">"HDF5 group\n"</span>);</div>
|
|
<div class="line"><span class="lineno"> 81</span> <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><span class="lineno"> 82</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdeca5ca744a77f8cd2b28dda90c37807ae31">H5O_TYPE_DATASET</a>:</div>
|
|
<div class="line"><span class="lineno"> 83</span> printf(<span class="stringliteral">"HDF5 dataset\n"</span>);</div>
|
|
<div class="line"><span class="lineno"> 84</span> <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><span class="lineno"> 85</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdecaaf17b046771c311d41bed7383874050e">H5O_TYPE_NAMED_DATATYPE</a>:</div>
|
|
<div class="line"><span class="lineno"> 86</span> printf(<span class="stringliteral">"HDF5 datatype\n"</span>);</div>
|
|
<div class="line"><span class="lineno"> 87</span> <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><span class="lineno"> 88</span> <span class="keywordflow">default</span>:</div>
|
|
<div class="line"><span class="lineno"> 89</span> printf(<span class="stringliteral">"UFO?\n"</span>);</div>
|
|
<div class="line"><span class="lineno"> 90</span> <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><span class="lineno"> 91</span> }</div>
|
|
<div class="line"><span class="lineno"> 92</span> <span class="comment">// print basic information</span></div>
|
|
<div class="line"><span class="lineno"> 93</span> printf(<span class="stringliteral">"Reference count: %u\n"</span>, info.<a class="code hl_variable" href="struct_h5_o__info2__t.html#a299ecaad7f9548089654d47a1b06291f">rc</a>);</div>
|
|
<div class="line"><span class="lineno"> 94</span> printf(<span class="stringliteral">"Attribute count: %lld\n"</span>, info.<a class="code hl_variable" href="struct_h5_o__info2__t.html#abc37a3659a46ce6096446cfd0d9f67ff">num_attrs</a>);</div>
|
|
<div class="line"><span class="lineno"> 95</span> </div>
|
|
<div class="line"><span class="lineno"> 96</span>fail_info:</div>
|
|
<div class="line"><span class="lineno"> 97</span> <a class="code hl_function" href="group___h5_f.html#gac55cd91d80822e4f8c2a7f04ea71b124">H5Fclose</a>(file);</div>
|
|
<div class="line"><span class="lineno"> 98</span>fail_file:;</div>
|
|
<div class="line"><span class="lineno"> 99</span> }</div>
|
|
</div><!-- fragment --> </td></tr>
|
|
<tr>
|
|
<th>Update</th><th>Delete </th></tr>
|
|
<tr valign="top">
|
|
<td><div class="fragment"><div class="line"><span class="lineno"> 103</span> {</div>
|
|
<div class="line"><span class="lineno"> 104</span> __label__ fail_obj, fail_incr, fail_file;</div>
|
|
<div class="line"><span class="lineno"> 105</span> <a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> file, obj;</div>
|
|
<div class="line"><span class="lineno"> 106</span> <span class="keywordtype">char</span> path[] = <span class="stringliteral">"/a/few/groups"</span>;</div>
|
|
<div class="line"><span class="lineno"> 107</span> <a class="code hl_struct" href="struct_h5_o__info2__t.html">H5O_info2_t</a> info;</div>
|
|
<div class="line"><span class="lineno"> 108</span> </div>
|
|
<div class="line"><span class="lineno"> 109</span> <span class="keywordflow">if</span> ((file = <a class="code hl_function" href="group___h5_f.html#gaa3f4f877b9bb591f3880423ed2bf44bc">H5Fopen</a>(<span class="stringliteral">"o1.h5"</span>, <a class="code hl_define" href="_h5_fpublic_8h.html#a402673dec5c537b27a49a9a8bd6140b4">H5F_ACC_RDWR</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 110</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 111</span> <span class="keywordflow">goto</span> fail_file;</div>
|
|
<div class="line"><span class="lineno"> 112</span> }</div>
|
|
<div class="line"><span class="lineno"> 113</span> </div>
|
|
<div class="line"><span class="lineno"> 114</span> <span class="comment">// open an object by path name</span></div>
|
|
<div class="line"><span class="lineno"> 115</span> <span class="keywordflow">if</span> ((obj = <a class="code hl_function" href="#ga9f635f58c7ddf17f87c253bfbca08bc1">H5Oopen</a>(file, path, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 116</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 117</span> <span class="keywordflow">goto</span> fail_obj;</div>
|
|
<div class="line"><span class="lineno"> 118</span> }</div>
|
|
<div class="line"><span class="lineno"> 119</span> </div>
|
|
<div class="line"><span class="lineno"> 120</span> <span class="comment">// bump its reference count (by 1)</span></div>
|
|
<div class="line"><span class="lineno"> 121</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#ga2086bad6c3cd2a711c306a48c093ff55">H5Oincr_refcount</a>(obj) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 122</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 123</span> <span class="keywordflow">goto</span> fail_incr;</div>
|
|
<div class="line"><span class="lineno"> 124</span> }</div>
|
|
<div class="line"><span class="lineno"> 125</span> </div>
|
|
<div class="line"><span class="lineno"> 126</span> <span class="comment">// confirm the new reference count</span></div>
|
|
<div class="line"><span class="lineno"> 127</span> <span class="keywordflow">if</span> (<a class="code hl_define" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info</a>(obj, &info, <a class="code hl_define" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a>) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 128</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 129</span> <span class="keywordflow">goto</span> fail_incr;</div>
|
|
<div class="line"><span class="lineno"> 130</span> }</div>
|
|
<div class="line"><span class="lineno"> 131</span> printf(<span class="stringliteral">"Reference count: %u\n"</span>, info.<a class="code hl_variable" href="struct_h5_o__info2__t.html#a299ecaad7f9548089654d47a1b06291f">rc</a>);</div>
|
|
<div class="line"><span class="lineno"> 132</span> </div>
|
|
<div class="line"><span class="lineno"> 133</span>fail_incr:</div>
|
|
<div class="line"><span class="lineno"> 134</span> <a class="code hl_function" href="#ga545ad7c54987013ebd50b40fe9e73c61">H5Oclose</a>(obj);</div>
|
|
<div class="line"><span class="lineno"> 135</span>fail_obj:</div>
|
|
<div class="line"><span class="lineno"> 136</span> <a class="code hl_function" href="group___h5_f.html#gac55cd91d80822e4f8c2a7f04ea71b124">H5Fclose</a>(file);</div>
|
|
<div class="line"><span class="lineno"> 137</span>fail_file:;</div>
|
|
<div class="line"><span class="lineno"> 138</span> }</div>
|
|
</div><!-- fragment --> </td><td><div class="fragment"><div class="line"><span class="lineno"> 142</span> {</div>
|
|
<div class="line"><span class="lineno"> 143</span> __label__ fail_obj, fail_delete, fail_file;</div>
|
|
<div class="line"><span class="lineno"> 144</span> <a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> file, obj;</div>
|
|
<div class="line"><span class="lineno"> 145</span> <span class="keywordtype">char</span> path[] = <span class="stringliteral">"/a/few/groups"</span>;</div>
|
|
<div class="line"><span class="lineno"> 146</span> <a class="code hl_struct" href="struct_h5_o__info2__t.html">H5O_info2_t</a> info;</div>
|
|
<div class="line"><span class="lineno"> 147</span> </div>
|
|
<div class="line"><span class="lineno"> 148</span> <span class="keywordflow">if</span> ((file = <a class="code hl_function" href="group___h5_f.html#gaa3f4f877b9bb591f3880423ed2bf44bc">H5Fopen</a>(<span class="stringliteral">"o1.h5"</span>, <a class="code hl_define" href="_h5_fpublic_8h.html#a402673dec5c537b27a49a9a8bd6140b4">H5F_ACC_RDWR</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 149</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 150</span> <span class="keywordflow">goto</span> fail_file;</div>
|
|
<div class="line"><span class="lineno"> 151</span> }</div>
|
|
<div class="line"><span class="lineno"> 152</span> </div>
|
|
<div class="line"><span class="lineno"> 153</span> <span class="comment">// open an object by path name</span></div>
|
|
<div class="line"><span class="lineno"> 154</span> <span class="keywordflow">if</span> ((obj = <a class="code hl_function" href="#ga9f635f58c7ddf17f87c253bfbca08bc1">H5Oopen</a>(file, path, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>)) == <a class="code hl_define" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>) {</div>
|
|
<div class="line"><span class="lineno"> 155</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 156</span> <span class="keywordflow">goto</span> fail_obj;</div>
|
|
<div class="line"><span class="lineno"> 157</span> }</div>
|
|
<div class="line"><span class="lineno"> 158</span> </div>
|
|
<div class="line"><span class="lineno"> 159</span> <span class="comment">// render it inaccessible from the root group by deleting the one and</span></div>
|
|
<div class="line"><span class="lineno"> 160</span> <span class="comment">// only link to it; this drops the reference count by 1</span></div>
|
|
<div class="line"><span class="lineno"> 161</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="group___h5_l.html#ga5b4e7f59f5d4bdae94fd8ce6875295cf">H5Ldelete</a>(file, path, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 162</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 163</span> <span class="keywordflow">goto</span> fail_delete;</div>
|
|
<div class="line"><span class="lineno"> 164</span> }</div>
|
|
<div class="line"><span class="lineno"> 165</span> </div>
|
|
<div class="line"><span class="lineno"> 166</span> <span class="comment">// confirm the new reference count</span></div>
|
|
<div class="line"><span class="lineno"> 167</span> <span class="keywordflow">if</span> (<a class="code hl_define" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info</a>(obj, &info, <a class="code hl_define" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a>) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 168</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 169</span> <span class="keywordflow">goto</span> fail_delete;</div>
|
|
<div class="line"><span class="lineno"> 170</span> }</div>
|
|
<div class="line"><span class="lineno"> 171</span> printf(<span class="stringliteral">"Reference count: %u\n"</span>, info.<a class="code hl_variable" href="struct_h5_o__info2__t.html#a299ecaad7f9548089654d47a1b06291f">rc</a>);</div>
|
|
<div class="line"><span class="lineno"> 172</span> </div>
|
|
<div class="line"><span class="lineno"> 173</span> <span class="comment">// if we close the file at this point, we'd be creating a tombstone,</span></div>
|
|
<div class="line"><span class="lineno"> 174</span> <span class="comment">// an object that cannot be reached and that cannot be reclaimed by the</span></div>
|
|
<div class="line"><span class="lineno"> 175</span> <span class="comment">// freespace manager; decrement the reference count to zero to prevent that</span></div>
|
|
<div class="line"><span class="lineno"> 176</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="group___h5_i.html#gaea2aa78caea892edf2a6a6ac70486ed9">H5Idec_ref</a>(obj) < 0) {</div>
|
|
<div class="line"><span class="lineno"> 177</span> ret_val = EXIT_FAILURE;</div>
|
|
<div class="line"><span class="lineno"> 178</span> <span class="keywordflow">goto</span> fail_delete;</div>
|
|
<div class="line"><span class="lineno"> 179</span> }</div>
|
|
<div class="line"><span class="lineno"> 180</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><span class="lineno"> 181</span> <span class="comment">// attempting to close the object would be like a double H5Oclose and fail</span></div>
|
|
<div class="line"><span class="lineno"> 182</span> <span class="keywordflow">goto</span> fail_obj;</div>
|
|
<div class="line"><span class="lineno"> 183</span> </div>
|
|
<div class="line"><span class="lineno"> 184</span>fail_delete:</div>
|
|
<div class="line"><span class="lineno"> 185</span> <a class="code hl_function" href="#ga545ad7c54987013ebd50b40fe9e73c61">H5Oclose</a>(obj);</div>
|
|
<div class="line"><span class="lineno"> 186</span>fail_obj:</div>
|
|
<div class="line"><span class="lineno"> 187</span> <a class="code hl_function" href="group___h5_f.html#gac55cd91d80822e4f8c2a7f04ea71b124">H5Fclose</a>(file);</div>
|
|
<div class="line"><span class="lineno"> 188</span>fail_file:;</div>
|
|
<div class="line"><span class="lineno"> 189</span> }</div>
|
|
</div><!-- fragment --> </td></tr>
|
|
</table>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:gaf4f302a33faba9e1c2b5f64c62ca4ed5" id="r_gaf4f302a33faba9e1c2b5f64c62ca4ed5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info</a>   <a class="el" href="#gaf0fbf7d780a1eefce920facadb198013">H5Oget_info3</a></td></tr>
|
|
<tr class="separator:gaf4f302a33faba9e1c2b5f64c62ca4ed5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gafe764884e1530f86079288dd5895a7bd" id="r_gafe764884e1530f86079288dd5895a7bd"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx</a>   <a class="el" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb">H5Oget_info_by_idx3</a></td></tr>
|
|
<tr class="separator:gafe764884e1530f86079288dd5895a7bd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga16d8ac07f9244cfccb42b5f309ca6b3c" id="r_ga16d8ac07f9244cfccb42b5f309ca6b3c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name</a>   <a class="el" href="#gabb69c962999e027cef0079bbb1282199">H5Oget_info_by_name3</a></td></tr>
|
|
<tr class="separator:ga16d8ac07f9244cfccb42b5f309ca6b3c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5ce86255fcc34ceaf84a62551cd24233" id="r_ga5ce86255fcc34ceaf84a62551cd24233"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit</a>   <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a">H5Ovisit3</a></td></tr>
|
|
<tr class="separator:ga5ce86255fcc34ceaf84a62551cd24233"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab02a69e88b11404e7fd61f55344b186c" id="r_gab02a69e88b11404e7fd61f55344b186c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a>   <a class="el" href="#ga34815400b01df59c4dac19436124885a">H5Ovisit_by_name3</a></td></tr>
|
|
<tr class="separator:gab02a69e88b11404e7fd61f55344b186c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:gab2fa388aadd1ff154ee150cbb4884c1c" id="r_gab2fa388aadd1ff154ee150cbb4884c1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab2fa388aadd1ff154ee150cbb4884c1c">H5Oare_mdc_flushes_disabled</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> object_id, <a class="el" href="_h5public_8h.html#ad470b00eccd2115c707c02de5fa1120d">hbool_t</a> *are_disabled)</td></tr>
|
|
<tr class="memdesc:gab2fa388aadd1ff154ee150cbb4884c1c"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves comment for specified object. <br /></td></tr>
|
|
<tr class="separator:gab2fa388aadd1ff154ee150cbb4884c1c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga545ad7c54987013ebd50b40fe9e73c61" id="r_ga545ad7c54987013ebd50b40fe9e73c61"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga545ad7c54987013ebd50b40fe9e73c61">H5Oclose</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> object_id)</td></tr>
|
|
<tr class="memdesc:ga545ad7c54987013ebd50b40fe9e73c61"><td class="mdescLeft"> </td><td class="mdescRight">Closes an object in an HDF5 file. <br /></td></tr>
|
|
<tr class="separator:ga545ad7c54987013ebd50b40fe9e73c61"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa94449be6f67f499be5ddd3fc44f4225" id="r_gaa94449be6f67f499be5ddd3fc44f4225"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225">H5Ocopy</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> src_loc_id, const char *src_name, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> dst_loc_id, const char *dst_name, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> ocpypl_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lcpl_id)</td></tr>
|
|
<tr class="memdesc:gaa94449be6f67f499be5ddd3fc44f4225"><td class="mdescLeft"> </td><td class="mdescRight">Copies an object in an HDF5 file. <br /></td></tr>
|
|
<tr class="separator:gaa94449be6f67f499be5ddd3fc44f4225"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga60c20da5e244c28a653d4fa23d316b44" id="r_ga60c20da5e244c28a653d4fa23d316b44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga60c20da5e244c28a653d4fa23d316b44">H5Odecr_refcount</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> object_id)</td></tr>
|
|
<tr class="memdesc:ga60c20da5e244c28a653d4fa23d316b44"><td class="mdescLeft"> </td><td class="mdescRight">Decrements an object reference count. <br /></td></tr>
|
|
<tr class="separator:ga60c20da5e244c28a653d4fa23d316b44"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0908be309da1fb4f771c1e264fac22ae" id="r_ga0908be309da1fb4f771c1e264fac22ae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0908be309da1fb4f771c1e264fac22ae">H5Odisable_mdc_flushes</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> object_id)</td></tr>
|
|
<tr class="memdesc:ga0908be309da1fb4f771c1e264fac22ae"><td class="mdescLeft"> </td><td class="mdescRight">Prevents metadata entries for an HDF5 object from being flushed from the metadata cache to storage. <br /></td></tr>
|
|
<tr class="separator:ga0908be309da1fb4f771c1e264fac22ae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga21014920bdabf6973e233796d7174156" id="r_ga21014920bdabf6973e233796d7174156"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga21014920bdabf6973e233796d7174156">H5Oenable_mdc_flushes</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> object_id)</td></tr>
|
|
<tr class="memdesc:ga21014920bdabf6973e233796d7174156"><td class="mdescLeft"> </td><td class="mdescRight">Enables flushing of dirty metadata entries from a file's metadata cache. <br /></td></tr>
|
|
<tr class="separator:ga21014920bdabf6973e233796d7174156"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab0fef18d97844c4f83d412c5a22def7b" id="r_gab0fef18d97844c4f83d412c5a22def7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#aa8f6c28736dbd0f18388c67911d38aca">htri_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b">H5Oexists_by_name</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> lapl_id)</td></tr>
|
|
<tr class="memdesc:gab0fef18d97844c4f83d412c5a22def7b"><td class="mdescLeft"> </td><td class="mdescRight">Determines whether a link resolves to an actual object. <br /></td></tr>
|
|
<tr class="separator:gab0fef18d97844c4f83d412c5a22def7b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad99f35048cba4534b6393214684f090f" id="r_gad99f35048cba4534b6393214684f090f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gad99f35048cba4534b6393214684f090f">H5Oflush</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id)</td></tr>
|
|
<tr class="memdesc:gad99f35048cba4534b6393214684f090f"><td class="mdescLeft"> </td><td class="mdescRight">Flushes all buffers associated with an HDF5 object to disk. <br /></td></tr>
|
|
<tr class="separator:gad99f35048cba4534b6393214684f090f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa1511ce5e2fe01ce7ea58f2f851d694b" id="r_gaa1511ce5e2fe01ce7ea58f2f851d694b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#af629ed855824cf5955b54529adf78ad6">ssize_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa1511ce5e2fe01ce7ea58f2f851d694b">H5Oget_comment</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, char *comment, size_t bufsize)</td></tr>
|
|
<tr class="memdesc:gaa1511ce5e2fe01ce7ea58f2f851d694b"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves comment for specified object. <br /></td></tr>
|
|
<tr class="separator:gaa1511ce5e2fe01ce7ea58f2f851d694b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae6d92d597c5a292d342a1bda91e41171" id="r_gae6d92d597c5a292d342a1bda91e41171"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#af629ed855824cf5955b54529adf78ad6">ssize_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gae6d92d597c5a292d342a1bda91e41171">H5Oget_comment_by_name</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, char *comment, size_t bufsize, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gae6d92d597c5a292d342a1bda91e41171"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves comment for specified object. <br /></td></tr>
|
|
<tr class="separator:gae6d92d597c5a292d342a1bda91e41171"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf3751684a6706e3ba49b863406011f80" id="r_gaf3751684a6706e3ba49b863406011f80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf3751684a6706e3ba49b863406011f80">H5Oget_info1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *oinfo)</td></tr>
|
|
<tr class="memdesc:gaf3751684a6706e3ba49b863406011f80"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object specified by an identifier. <br /></td></tr>
|
|
<tr class="separator:gaf3751684a6706e3ba49b863406011f80"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga06f896e14fe4fa940fbc2bc235e0cf74" id="r_ga06f896e14fe4fa940fbc2bc235e0cf74"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga06f896e14fe4fa940fbc2bc235e0cf74">H5Oget_info2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *oinfo, unsigned fields)</td></tr>
|
|
<tr class="memdesc:ga06f896e14fe4fa940fbc2bc235e0cf74"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object specified by an identifier. <br /></td></tr>
|
|
<tr class="separator:ga06f896e14fe4fa940fbc2bc235e0cf74"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf0fbf7d780a1eefce920facadb198013" id="r_gaf0fbf7d780a1eefce920facadb198013"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf0fbf7d780a1eefce920facadb198013">H5Oget_info3</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> *oinfo, unsigned fields)</td></tr>
|
|
<tr class="memdesc:gaf0fbf7d780a1eefce920facadb198013"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object specified by an identifier. <br /></td></tr>
|
|
<tr class="separator:gaf0fbf7d780a1eefce920facadb198013"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7208d2cf198dcfc875603323841bffae" id="r_ga7208d2cf198dcfc875603323841bffae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga7208d2cf198dcfc875603323841bffae">H5Oget_info_by_idx1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *group_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a> n, <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *oinfo, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga7208d2cf198dcfc875603323841bffae"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object, identifying the object by an index position. <br /></td></tr>
|
|
<tr class="separator:ga7208d2cf198dcfc875603323841bffae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga85e15e65922874111da1a5efd5dd7bed" id="r_ga85e15e65922874111da1a5efd5dd7bed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga85e15e65922874111da1a5efd5dd7bed">H5Oget_info_by_idx2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *group_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a> n, <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *oinfo, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga85e15e65922874111da1a5efd5dd7bed"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object, identifying the object by an index position. <br /></td></tr>
|
|
<tr class="separator:ga85e15e65922874111da1a5efd5dd7bed"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gafa2f8884f7d3e7fd9b8549f5b59fd9eb" id="r_gafa2f8884f7d3e7fd9b8549f5b59fd9eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb">H5Oget_info_by_idx3</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *group_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a> n, <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> *oinfo, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gafa2f8884f7d3e7fd9b8549f5b59fd9eb"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object, identifying the object by an index position. <br /></td></tr>
|
|
<tr class="separator:gafa2f8884f7d3e7fd9b8549f5b59fd9eb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga96ce408ffda805210844246904da2842" id="r_ga96ce408ffda805210844246904da2842"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga96ce408ffda805210844246904da2842">H5Oget_info_by_name1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *oinfo, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga96ce408ffda805210844246904da2842"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object, identifying the object by location and relative name. <br /></td></tr>
|
|
<tr class="separator:ga96ce408ffda805210844246904da2842"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0090da86c086c1c63a5acfaed39a035e" id="r_ga0090da86c086c1c63a5acfaed39a035e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0090da86c086c1c63a5acfaed39a035e">H5Oget_info_by_name2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *oinfo, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga0090da86c086c1c63a5acfaed39a035e"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object, identifying the object by location and relative name. <br /></td></tr>
|
|
<tr class="separator:ga0090da86c086c1c63a5acfaed39a035e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabb69c962999e027cef0079bbb1282199" id="r_gabb69c962999e027cef0079bbb1282199"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gabb69c962999e027cef0079bbb1282199">H5Oget_info_by_name3</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> *oinfo, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gabb69c962999e027cef0079bbb1282199"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the metadata for an object, identifying the object by location and relative name. <br /></td></tr>
|
|
<tr class="separator:gabb69c962999e027cef0079bbb1282199"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga677d99ab106e2032b991b75b75de0e46" id="r_ga677d99ab106e2032b991b75b75de0e46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga677d99ab106e2032b991b75b75de0e46">H5Oget_native_info</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a> *oinfo, unsigned fields)</td></tr>
|
|
<tr class="memdesc:ga677d99ab106e2032b991b75b75de0e46"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve native file format information about an object. <br /></td></tr>
|
|
<tr class="separator:ga677d99ab106e2032b991b75b75de0e46"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gafa6570d8b0ef6e2aff75093e1f99f67e" id="r_gafa6570d8b0ef6e2aff75093e1f99f67e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gafa6570d8b0ef6e2aff75093e1f99f67e">H5Oget_native_info_by_idx</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *group_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a> n, <a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a> *oinfo, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gafa6570d8b0ef6e2aff75093e1f99f67e"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve native file format information about an object according to the order of an index. <br /></td></tr>
|
|
<tr class="separator:gafa6570d8b0ef6e2aff75093e1f99f67e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga296ded21aeac3921fee07272353b8476" id="r_ga296ded21aeac3921fee07272353b8476"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga296ded21aeac3921fee07272353b8476">H5Oget_native_info_by_name</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, <a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a> *oinfo, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga296ded21aeac3921fee07272353b8476"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve native file format information about an object given its name. <br /></td></tr>
|
|
<tr class="separator:ga296ded21aeac3921fee07272353b8476"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2086bad6c3cd2a711c306a48c093ff55" id="r_ga2086bad6c3cd2a711c306a48c093ff55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2086bad6c3cd2a711c306a48c093ff55">H5Oincr_refcount</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> object_id)</td></tr>
|
|
<tr class="memdesc:ga2086bad6c3cd2a711c306a48c093ff55"><td class="mdescLeft"> </td><td class="mdescRight">Increments an object reference count. <br /></td></tr>
|
|
<tr class="separator:ga2086bad6c3cd2a711c306a48c093ff55"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2c97dd58e64b67d16325fceb7e02113f" id="r_ga2c97dd58e64b67d16325fceb7e02113f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2c97dd58e64b67d16325fceb7e02113f">H5Olink</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> new_loc_id, const char *new_name, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lcpl_id, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga2c97dd58e64b67d16325fceb7e02113f"><td class="mdescLeft"> </td><td class="mdescRight">Creates a hard link to an object in an HDF5 file. <br /></td></tr>
|
|
<tr class="separator:ga2c97dd58e64b67d16325fceb7e02113f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9f635f58c7ddf17f87c253bfbca08bc1" id="r_ga9f635f58c7ddf17f87c253bfbca08bc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga9f635f58c7ddf17f87c253bfbca08bc1">H5Oopen</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> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga9f635f58c7ddf17f87c253bfbca08bc1"><td class="mdescLeft"> </td><td class="mdescRight">Opens an object in an HDF5 file by location identifier and path name. <br /></td></tr>
|
|
<tr class="separator:ga9f635f58c7ddf17f87c253bfbca08bc1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga137f3823adab4daaaf8fe87b40453fa2" id="r_ga137f3823adab4daaaf8fe87b40453fa2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga137f3823adab4daaaf8fe87b40453fa2">H5Oopen_by_addr</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="_h5public_8h.html#a8c86e866f40d7167cf9a1934c72b856f">haddr_t</a> addr)</td></tr>
|
|
<tr class="memdesc:ga137f3823adab4daaaf8fe87b40453fa2"><td class="mdescLeft"> </td><td class="mdescRight">Opens an object using its address within an HDF5 file. <br /></td></tr>
|
|
<tr class="separator:ga137f3823adab4daaaf8fe87b40453fa2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaeb66e5cbb3ca79890fc284a0b06762be" id="r_gaeb66e5cbb3ca79890fc284a0b06762be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaeb66e5cbb3ca79890fc284a0b06762be">H5Oopen_by_idx</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *group_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a> n, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gaeb66e5cbb3ca79890fc284a0b06762be"><td class="mdescLeft"> </td><td class="mdescRight">Opens the nth object in a group. <br /></td></tr>
|
|
<tr class="separator:gaeb66e5cbb3ca79890fc284a0b06762be"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2ea3627cf171d0565307702a5e203262" id="r_ga2ea3627cf171d0565307702a5e203262"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2ea3627cf171d0565307702a5e203262">H5Oopen_by_token</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> token)</td></tr>
|
|
<tr class="memdesc:ga2ea3627cf171d0565307702a5e203262"><td class="mdescLeft"> </td><td class="mdescRight">Opens an object in an HDF5 file using its VOL independent token. <br /></td></tr>
|
|
<tr class="separator:ga2ea3627cf171d0565307702a5e203262"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf0318b68be9ab23a92b8a6bee0af9e2f" id="r_gaf0318b68be9ab23a92b8a6bee0af9e2f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf0318b68be9ab23a92b8a6bee0af9e2f">H5Orefresh</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> oid)</td></tr>
|
|
<tr class="memdesc:gaf0318b68be9ab23a92b8a6bee0af9e2f"><td class="mdescLeft"> </td><td class="mdescRight">Refreshes all buffers associated with an HDF5 object. <br /></td></tr>
|
|
<tr class="separator:gaf0318b68be9ab23a92b8a6bee0af9e2f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8b5cf8e916204e29616516046121f631" id="r_ga8b5cf8e916204e29616516046121f631"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga8b5cf8e916204e29616516046121f631">H5Oset_comment</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, const char *comment)</td></tr>
|
|
<tr class="memdesc:ga8b5cf8e916204e29616516046121f631"><td class="mdescLeft"> </td><td class="mdescRight">Sets comment for specified object. <br /></td></tr>
|
|
<tr class="separator:ga8b5cf8e916204e29616516046121f631"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gafeb5242de7f1080b5c19f4fe19784505" id="r_gafeb5242de7f1080b5c19f4fe19784505"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gafeb5242de7f1080b5c19f4fe19784505">H5Oset_comment_by_name</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *name, const char *comment, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gafeb5242de7f1080b5c19f4fe19784505"><td class="mdescLeft"> </td><td class="mdescRight">Sets comment for specified object. <br /></td></tr>
|
|
<tr class="separator:gafeb5242de7f1080b5c19f4fe19784505"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaeb8da4fbe62f8a3cd9146a7ac1093562" id="r_gaeb8da4fbe62f8a3cd9146a7ac1093562"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaeb8da4fbe62f8a3cd9146a7ac1093562">H5Otoken_cmp</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *token1, const <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *token2, int *cmp_value)</td></tr>
|
|
<tr class="memdesc:gaeb8da4fbe62f8a3cd9146a7ac1093562"><td class="mdescLeft"> </td><td class="mdescRight">Compares two VOL connector object tokens. <br /></td></tr>
|
|
<tr class="separator:gaeb8da4fbe62f8a3cd9146a7ac1093562"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5136c14b4e907f15007030d7a6d6cd24" id="r_ga5136c14b4e907f15007030d7a6d6cd24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5136c14b4e907f15007030d7a6d6cd24">H5Otoken_from_str</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *token_str, <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *token)</td></tr>
|
|
<tr class="memdesc:ga5136c14b4e907f15007030d7a6d6cd24"><td class="mdescLeft"> </td><td class="mdescRight">Deserializes a string into a connector object token. <br /></td></tr>
|
|
<tr class="separator:ga5136c14b4e907f15007030d7a6d6cd24"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2bdd7528090f7f2c4b361ab4cc7735f6" id="r_ga2bdd7528090f7f2c4b361ab4cc7735f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2bdd7528090f7f2c4b361ab4cc7735f6">H5Otoken_to_str</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *token, char **token_str)</td></tr>
|
|
<tr class="memdesc:ga2bdd7528090f7f2c4b361ab4cc7735f6"><td class="mdescLeft"> </td><td class="mdescRight">Serializes a connector's object token into a string. <br /></td></tr>
|
|
<tr class="separator:ga2bdd7528090f7f2c4b361ab4cc7735f6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6efdb2a0a9fe9fe46695cc0f7bd993e7" id="r_ga6efdb2a0a9fe9fe46695cc0f7bd993e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7">H5Ovisit1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a> op, void *op_data)</td></tr>
|
|
<tr class="memdesc:ga6efdb2a0a9fe9fe46695cc0f7bd993e7"><td class="mdescLeft"> </td><td class="mdescRight">Recursively visits all objects accessible from a specified object. <br /></td></tr>
|
|
<tr class="separator:ga6efdb2a0a9fe9fe46695cc0f7bd993e7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa4ab542f581f4fc9a4eaa95debb29c9e" id="r_gaa4ab542f581f4fc9a4eaa95debb29c9e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa4ab542f581f4fc9a4eaa95debb29c9e">H5Ovisit2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a> op, void *op_data, unsigned fields)</td></tr>
|
|
<tr class="memdesc:gaa4ab542f581f4fc9a4eaa95debb29c9e"><td class="mdescLeft"> </td><td class="mdescRight">Recursively visits all objects accessible from a specified object. <br /></td></tr>
|
|
<tr class="separator:gaa4ab542f581f4fc9a4eaa95debb29c9e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6d03115ae0e5e5b516bbf35bb492266a" id="r_ga6d03115ae0e5e5b516bbf35bb492266a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a">H5Ovisit3</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> obj_id, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5_opublic_8h.html#a564cec62aef0389091ad21d235aa321c">H5O_iterate2_t</a> op, void *op_data, unsigned fields)</td></tr>
|
|
<tr class="memdesc:ga6d03115ae0e5e5b516bbf35bb492266a"><td class="mdescLeft"> </td><td class="mdescRight">Recursively visits all objects accessible from a specified object. <br /></td></tr>
|
|
<tr class="separator:ga6d03115ae0e5e5b516bbf35bb492266a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaffacf3bd66f4fe074099eae1c80914f2" id="r_gaffacf3bd66f4fe074099eae1c80914f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2">H5Ovisit_by_name1</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *obj_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a> op, void *op_data, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:gaffacf3bd66f4fe074099eae1c80914f2"><td class="mdescLeft"> </td><td class="mdescRight">Recursively visits all objects starting from a specified object. <br /></td></tr>
|
|
<tr class="separator:gaffacf3bd66f4fe074099eae1c80914f2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9c155caf5499405fe403e1eb27b5beb6" id="r_ga9c155caf5499405fe403e1eb27b5beb6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga9c155caf5499405fe403e1eb27b5beb6">H5Ovisit_by_name2</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *obj_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a> op, void *op_data, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga9c155caf5499405fe403e1eb27b5beb6"><td class="mdescLeft"> </td><td class="mdescRight">Recursively visits all objects starting from a specified object. <br /></td></tr>
|
|
<tr class="separator:ga9c155caf5499405fe403e1eb27b5beb6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga34815400b01df59c4dac19436124885a" id="r_ga34815400b01df59c4dac19436124885a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h5public_8h.html#a3b079ecf932a5c599499cf7e298af160">herr_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga34815400b01df59c4dac19436124885a">H5Ovisit_by_name3</a> (<a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> loc_id, const char *obj_name, <a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a> idx_type, <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a> order, <a class="el" href="_h5_opublic_8h.html#a564cec62aef0389091ad21d235aa321c">H5O_iterate2_t</a> op, void *op_data, unsigned fields, <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lapl_id)</td></tr>
|
|
<tr class="memdesc:ga34815400b01df59c4dac19436124885a"><td class="mdescLeft"> </td><td class="mdescRight">Recursively visits all objects accessible from a specified object. <br /></td></tr>
|
|
<tr class="separator:ga34815400b01df59c4dac19436124885a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="gaf4f302a33faba9e1c2b5f64c62ca4ed5" name="gaf4f302a33faba9e1c2b5f64c62ca4ed5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">◆ </a></span>H5Oget_info</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Oget_info   <a class="el" href="#gaf0fbf7d780a1eefce920facadb198013">H5Oget_info3</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> is a macro that is mapped to either <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> or <a class="el" href="#ga06f896e14fe4fa940fbc2bc235e0cf74" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info2()</a> or <a class="el" href="#gaf0fbf7d780a1eefce920facadb198013" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info3()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gafe764884e1530f86079288dd5895a7bd" name="gafe764884e1530f86079288dd5895a7bd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gafe764884e1530f86079288dd5895a7bd">◆ </a></span>H5Oget_info_by_idx</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Oget_info_by_idx   <a class="el" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb">H5Oget_info_by_idx3</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx()</a> is a macro that is mapped to either <a class="el" href="#ga7208d2cf198dcfc875603323841bffae" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx1()</a> or <a class="el" href="#ga85e15e65922874111da1a5efd5dd7bed" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx2()</a> or <a class="el" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx3()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga16d8ac07f9244cfccb42b5f309ca6b3c" name="ga16d8ac07f9244cfccb42b5f309ca6b3c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">◆ </a></span>H5Oget_info_by_name</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Oget_info_by_name   <a class="el" href="#gabb69c962999e027cef0079bbb1282199">H5Oget_info_by_name3</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name()</a> is a macro that is mapped to either <a class="el" href="#ga96ce408ffda805210844246904da2842" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name1()</a> or <a class="el" href="#ga0090da86c086c1c63a5acfaed39a035e" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name2()</a> or <a class="el" href="#gabb69c962999e027cef0079bbb1282199" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name3()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5ce86255fcc34ceaf84a62551cd24233" name="ga5ce86255fcc34ceaf84a62551cd24233"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5ce86255fcc34ceaf84a62551cd24233">◆ </a></span>H5Ovisit</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Ovisit   <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a">H5Ovisit3</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit()</a> is a macro that is mapped to either <a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a> or <a class="el" href="#gaa4ab542f581f4fc9a4eaa95debb29c9e" title="Recursively visits all objects accessible from a specified object.">H5Ovisit2()</a> or <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gab02a69e88b11404e7fd61f55344b186c" name="gab02a69e88b11404e7fd61f55344b186c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab02a69e88b11404e7fd61f55344b186c">◆ </a></span>H5Ovisit_by_name</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define H5Ovisit_by_name   <a class="el" href="#ga34815400b01df59c4dac19436124885a">H5Ovisit_by_name3</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p><a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name()</a> is a macro that is mapped to either <a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a> or <a class="el" href="#ga9c155caf5499405fe403e1eb27b5beb6" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name2()</a> or <a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a>.<br />
|
|
</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="api-compat-macros.html">API Compatibility Macros</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="gab2fa388aadd1ff154ee150cbb4884c1c" name="gab2fa388aadd1ff154ee150cbb4884c1c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab2fa388aadd1ff154ee150cbb4884c1c">◆ </a></span>H5Oare_mdc_flushes_disabled()</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> H5Oare_mdc_flushes_disabled </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>object_id</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#ad470b00eccd2115c707c02de5fa1120d">hbool_t</a> *</td> <td class="paramname"><span class="paramname"><em>are_disabled</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves comment for specified object. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">object_id</td><td>Identifier of an object in the cache; may be a group, named datatype, or dataset identifier </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">are_disabled</td><td>Flushes enabled/disabled</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd><code class="param">are_disabled</code> will be set to <code>1</code> if an object has had flushes disabled and <code>0</code> if it has not had flushes disabled. </dd>
|
|
<dd>
|
|
Returns a non-negative value if successful; otherwise, returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gab2fa388aadd1ff154ee150cbb4884c1c" title="Retrieves comment for specified object.">H5Oare_mdc_flushes_disabled()</a> determines if an HDF5 object (dataset, group, committed datatype) has had flushes of metadata entries disabled.</p>
|
|
<p>The <a class="el" href="#ga21014920bdabf6973e233796d7174156" title="Enables flushing of dirty metadata entries from a file's metadata cache.">H5Oenable_mdc_flushes()</a>, <a class="el" href="#ga0908be309da1fb4f771c1e264fac22ae" title="Prevents metadata entries for an HDF5 object from being flushed from the metadata cache to storage.">H5Odisable_mdc_flushes()</a> and associated flush functions can be used to control the flushing of entries from a file's metadata cache. Metadata cache entries can be controlled at both the individual HDF5 object level (datasets, groups, committed datatypes) and the entire metadata cache level.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>HDF5 objects include datasets, groups, and committed datatypes. Only <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> identifiers that represent these objects can be passed to the function. </dd>
|
|
<dd>
|
|
Passing in a <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> identifier that represents any other HDF5 entity is considered an error. </dd>
|
|
<dd>
|
|
It is an error to pass an HDF5 file identifier (obtained from <a class="el" href="group___h5_f.html#gaa3f4f877b9bb591f3880423ed2bf44bc" title="Opens an existing HDF5 file.">H5Fopen()</a> or <a class="el" href="group___h5_f.html#gae64b51ee9ac0781bc4ccc599d98387f4" title="Creates an HDF5 file.">H5Fcreate()</a>) to this function.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga545ad7c54987013ebd50b40fe9e73c61" name="ga545ad7c54987013ebd50b40fe9e73c61"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga545ad7c54987013ebd50b40fe9e73c61">◆ </a></span>H5Oclose()</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> H5Oclose </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>object_id</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Closes an object in an HDF5 file. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">object_id</td><td>Object identifier</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="#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> closes the group, dataset, or named datatype specified by object_id.</p>
|
|
<p>This function is the companion to <a class="el" href="#ga9f635f58c7ddf17f87c253bfbca08bc1" title="Opens an object in an HDF5 file by location identifier and path name.">H5Oopen()</a>, and has the same effect as calling <a class="el" href="group___h5_g.html#ga8dbe20b390d2504f0bd3589ed8f4e221" title="Closes the specified group.">H5Gclose()</a>, <a class="el" href="group___h5_d.html#gae47c3f38db49db127faf221624c30609" title="Closes the specified dataset.">H5Dclose()</a>, or <a class="el" href="group___h5_t.html#gafcba4db244f6a4d71e99c6e72b8678f0" title="Releases a datatype.">H5Tclose()</a>.</p>
|
|
<p><a class="el" href="#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> is not used to close a dataspace, attribute, property list, or file.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.8 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa94449be6f67f499be5ddd3fc44f4225" name="gaa94449be6f67f499be5ddd3fc44f4225"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa94449be6f67f499be5ddd3fc44f4225">◆ </a></span>H5Ocopy()</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> H5Ocopy </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>src_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>src_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>dst_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>dst_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>ocpypl_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>lcpl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Copies an object in an HDF5 file. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">src_loc_id</td><td>Object identifier indicating the location of the source object to be copied </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">src_name</td><td>Name of the source object to be copied </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">dst_loc_id</td><td>Location identifier specifying the destination </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">dst_name</td><td>Name to be assigned to the new copy </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">ocpypl_id</td><td>Object copy property list </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lcpl_id</td><td>Link creation property list identifier</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="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a> copies the group, dataset or committed datatype specified by <code class="param">src_name</code> from the file or group specified by <code class="param">src_loc_id</code> to the destination location <code class="param">dst_loc_id</code>.</p>
|
|
<p>The destination location, as specified in dst_loc_id, may be a group in the current file or a location in a different file. If dst_loc_id is a file identifier, the copy will be placed in that file's root group.</p>
|
|
<p>The copy will be created with the path specified in <code class="param">dst_name</code>, which must not pre-exist in the destination location. If <code class="param">dst_name</code> already exists at the location <code class="param">dst_loc_id</code>, <a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a> will fail. If <code class="param">dst_name</code> is an absolute path, the copy will be created relative to the file's root group.</p>
|
|
<p>The copy of the object is created with the property lists specified by <code class="param">ocpypl_id</code> and <code class="param">lcpl_id</code>. <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a> can be passed in for these property lists. The default behavior:</p>
|
|
<ul>
|
|
<li>of the link creation property list is to NOT create intermediate groups.</li>
|
|
<li>of the flags specified by the object creation property list is described in <a class="el" href="group___o_c_p_y_p_l.html#ga8819261e0b4663827212892e10dfc8a6" title="Sets properties to be used when an object is copied.">H5Pset_copy_object()</a>.</li>
|
|
</ul>
|
|
<p>These property lists or flags can be modified to govern the behavior of <a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a> as follows:</p>
|
|
<ul>
|
|
<li>A flag controlling the creation of intermediate groups that may not yet exist is set in the link creation property list <code class="param">lcpl_id</code> with <a class="el" href="group___l_c_p_l.html#ga66c4c5d3f34e5cf65d00e47a5387383c" title="Specifies in property list whether to create missing intermediate groups.">H5Pset_create_intermediate_group()</a>.</li>
|
|
<li>Copying of committed datatypes can be tuned through the use of <a class="el" href="group___o_c_p_y_p_l.html#ga8819261e0b4663827212892e10dfc8a6" title="Sets properties to be used when an object is copied.">H5Pset_copy_object()</a>, <a class="el" href="group___o_c_p_y_p_l.html#gab89c9debe50afca848151ff046afc82f" title="Adds a path to the list of paths that will be searched in the destination file for a matching committ...">H5Padd_merge_committed_dtype_path()</a>, <a class="el" href="group___o_c_p_y_p_l.html#ga9e0448885990a1b9ebd4493b7604f0c1" title="Sets the callback function that H5Ocopy() will invoke before searching the entire destination file fo...">H5Pset_mcdt_search_cb()</a>, and related functions.</li>
|
|
<li>Flags controlling other aspects of object copying are set in the object copy property list <code class="param">ocpypl_id</code> with <a class="el" href="group___o_c_p_y_p_l.html#ga8819261e0b4663827212892e10dfc8a6" title="Sets properties to be used when an object is copied.">H5Pset_copy_object()</a>.</li>
|
|
</ul>
|
|
<p><a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a> will always try to make a copy of the object specified in <code class="param">src_name</code>.</p>
|
|
<ul>
|
|
<li>If the object specified by <code class="param">src_name</code> is a group containing a soft or external link, the default is that the new copy will contain a soft or external link with the same value as the original. See <a class="el" href="group___o_c_p_y_p_l.html#ga8819261e0b4663827212892e10dfc8a6" title="Sets properties to be used when an object is copied.">H5Pset_copy_object()</a> for optional settings.</li>
|
|
<li>If the path specified in <code class="param">src_name</code> is or contains a soft link or an external link, <a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a> will copy the target object. Use <a class="el" href="group___h5_l.html#gafd4624f1c040d5f1df36cb1e6986aac6" title="Creates an identical copy of a link with the same creation time and target. The new link can have a d...">H5Lcopy()</a> if the intent is to create a new soft or external link with the same value as the original link.</li>
|
|
</ul>
|
|
<p><a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a> can be used to copy an object in an HDF5 file. If an object has been changed since it was opened, it should be written back to the file before using <a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a>. The object can be written back either by closing the object (<a class="el" href="group___h5_g.html#ga8dbe20b390d2504f0bd3589ed8f4e221" title="Closes the specified group.">H5Gclose()</a>, <a class="el" href="#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a>, <a class="el" href="group___h5_d.html#gae47c3f38db49db127faf221624c30609" title="Closes the specified dataset.">H5Dclose()</a>, or <a class="el" href="group___h5_t.html#gafcba4db244f6a4d71e99c6e72b8678f0" title="Releases a datatype.">H5Tclose()</a>) or by flushing the HDF5 file (<a class="el" href="group___h5_f.html#gae686870f0a276c4d06bbc667b2c24124" title="Flushes all buffers associated with a file to storage.">H5Fflush()</a>).</p>
|
|
<dl class="section user"><dt>See Also:</dt><dd><ul>
|
|
<li>Functions to modify the behavior of <a class="el" href="#gaa94449be6f67f499be5ddd3fc44f4225" title="Copies an object in an HDF5 file.">H5Ocopy()</a>:<ul>
|
|
<li><a class="el" href="group___o_c_p_y_p_l.html#gab89c9debe50afca848151ff046afc82f" title="Adds a path to the list of paths that will be searched in the destination file for a matching committ...">H5Padd_merge_committed_dtype_path()</a></li>
|
|
<li><a class="el" href="group___o_c_p_y_p_l.html#ga8819261e0b4663827212892e10dfc8a6" title="Sets properties to be used when an object is copied.">H5Pset_copy_object()</a></li>
|
|
<li><a class="el" href="group___l_c_p_l.html#ga66c4c5d3f34e5cf65d00e47a5387383c" title="Specifies in property list whether to create missing intermediate groups.">H5Pset_create_intermediate_group()</a></li>
|
|
<li><a class="el" href="group___o_c_p_y_p_l.html#ga9e0448885990a1b9ebd4493b7604f0c1" title="Sets the callback function that H5Ocopy() will invoke before searching the entire destination file fo...">H5Pset_mcdt_search_cb()</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="el" href="copying_committed.html">Copying Committed Datatypes with H5Ocopy</a> - A comprehensive discussion of copying committed datatypes (PDF) in Advanced Topics in HDF5</li>
|
|
</ul>
|
|
</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.9 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga60c20da5e244c28a653d4fa23d316b44" name="ga60c20da5e244c28a653d4fa23d316b44"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga60c20da5e244c28a653d4fa23d316b44">◆ </a></span>H5Odecr_refcount()</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> H5Odecr_refcount </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>object_id</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Decrements an object reference count. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">object_id</td><td>Location identifier of object. The identifier may be that of a file, group, dataset, named datatype, or attribute.</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="#ga60c20da5e244c28a653d4fa23d316b44" title="Decrements an object reference count.">H5Odecr_refcount()</a> decrements the hard link reference count for an object. It should be used any time a user-defined link that references an object by address is deleted. In general, <a class="el" href="#ga2086bad6c3cd2a711c306a48c093ff55" title="Increments an object reference count.">H5Oincr_refcount()</a> will have been used previously, when the link was created.</p>
|
|
<p>An object's reference count is the number of hard links in the file that point to that object. See the “Programming Model” section of the HDF5 Groups chapter in the <em><a class="el" href="_u_g.html">HDF5 User Guide</a></em> for a more complete discussion of reference counts.</p>
|
|
<p>If a user application needs to determine an object's reference count, an <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> call is required; the reference count is returned in the <code>rc</code> field of the <a class="el" href="_h5version_8h.html#a5f76b0cdd6d68d61f11e46d4f06e50d4">H5O_info_t</a> <code>struct</code>.</p>
|
|
<dl class="section warning"><dt>Warning</dt><dd>This function must be used with care! </dd>
|
|
<dd>
|
|
Improper use can lead to inaccessible data, wasted space in the file, or <b><em>file corruption</em></b>.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0908be309da1fb4f771c1e264fac22ae" name="ga0908be309da1fb4f771c1e264fac22ae"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0908be309da1fb4f771c1e264fac22ae">◆ </a></span>H5Odisable_mdc_flushes()</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> H5Odisable_mdc_flushes </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>object_id</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Prevents metadata entries for an HDF5 object from being flushed from the metadata cache to storage. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">object_id</td><td>Identifier of the object that will have flushes disabled; may be a group, named datatype, or dataset identifier</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="#ga0908be309da1fb4f771c1e264fac22ae" title="Prevents metadata entries for an HDF5 object from being flushed from the metadata cache to storage.">H5Odisable_mdc_flushes()</a>, <a class="el" href="#ga21014920bdabf6973e233796d7174156" title="Enables flushing of dirty metadata entries from a file's metadata cache.">H5Oenable_mdc_flushes()</a> and associated flush functions can be used to control the flushing of entries from a file's metadata cache.</p>
|
|
<p>This function prevents an object's or cache's dirty metadata entries from being flushed from the cache by the usual cache eviction/flush policy. Instead, users must manually flush the cache or entries for individual objects via the appropriate <a class="el" href="group___h5_f.html#gae686870f0a276c4d06bbc667b2c24124" title="Flushes all buffers associated with a file to storage.">H5Fflush()</a>, <a class="el" href="group___h5_d.html#ga4a2175a62baa1e35ad2467bb1fdff1f7" title="Flushes all buffers associated with a dataset to disk.">H5Dflush()</a>, <a class="el" href="group___h5_g.html#ga1d55dbf931f8003bb329c4340b8fe4d6" title="Flushes all buffers associated with a group to disk.">H5Gflush()</a>, <a class="el" href="group___h5_t.html#gafd60389b49e1e5e6f37caffbe6cbf6e5" title="Flushes all buffers associated with a committed datatype to disk.">H5Tflush()</a>, and <a class="el" href="#gad99f35048cba4534b6393214684f090f" title="Flushes all buffers associated with an HDF5 object to disk.">H5Oflush()</a> calls.</p>
|
|
<p>Metadata cache entries can be controlled at both the individual HDF5 object level (datasets, groups, committed datatypes) and the entire metadata cache level.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>HDF5 objects include datasets, groups, and committed datatypes. Only <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> identifiers that represent these objects can be passed to the function. Passing in a <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> identifier that represents any other HDF5 entity is considered an error. It is an error to pass an HDF5 file identifier (obtained from <a class="el" href="group___h5_f.html#gaa3f4f877b9bb591f3880423ed2bf44bc" title="Opens an existing HDF5 file.">H5Fopen()</a> or <a class="el" href="group___h5_f.html#gae64b51ee9ac0781bc4ccc599d98387f4" title="Creates an HDF5 file.">H5Fcreate()</a>) to this function. Misuse of this function can cause the cache to exhaust available memory. Objects can be returned to the default automatic flush behavior with <a class="el" href="#ga21014920bdabf6973e233796d7174156" title="Enables flushing of dirty metadata entries from a file's metadata cache.">H5Oenable_mdc_flushes()</a>. Flush prevention only pertains to new or dirty metadata entries. Clean entries can be evicted from the cache. Calling this function on an object that has already had flushes disabled will return an error.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga21014920bdabf6973e233796d7174156" name="ga21014920bdabf6973e233796d7174156"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga21014920bdabf6973e233796d7174156">◆ </a></span>H5Oenable_mdc_flushes()</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> H5Oenable_mdc_flushes </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>object_id</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Enables flushing of dirty metadata entries from a file's metadata cache. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">object_id</td><td>Identifier of the object that will have flushes re-enabled; may be a group, named datatype, or dataset identifier</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="#ga21014920bdabf6973e233796d7174156" title="Enables flushing of dirty metadata entries from a file's metadata cache.">H5Oenable_mdc_flushes()</a>, <a class="el" href="#ga0908be309da1fb4f771c1e264fac22ae" title="Prevents metadata entries for an HDF5 object from being flushed from the metadata cache to storage.">H5Odisable_mdc_flushes()</a> and associated flush functions can be used to control the flushing of entries from a file's metadata cache.</p>
|
|
<p>This function allows an object or cache's dirty metadata entries to be flushed from the cache by the usual cache eviction/flush policy.</p>
|
|
<p>Metadata cache entries can be controlled at both the individual HDF5 object level (datasets, groups, committed datatypes) and the entire metadata cache level.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>HDF5 objects include datasets, groups, and committed datatypes. Only <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> identifiers that represent these objects can be passed to the function. Passing in a <a class="el" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> identifier that represents any other HDF5 entity is considered an error. It is an error to pass an HDF5 file identifier (obtained from <a class="el" href="group___h5_f.html#gaa3f4f877b9bb591f3880423ed2bf44bc" title="Opens an existing HDF5 file.">H5Fopen()</a> or <a class="el" href="group___h5_f.html#gae64b51ee9ac0781bc4ccc599d98387f4" title="Creates an HDF5 file.">H5Fcreate()</a>) to this function. Using this function on an object that has not had flushes disabled is considered an error. The state of an object can be determined with <a class="el" href="#gab2fa388aadd1ff154ee150cbb4884c1c" title="Retrieves comment for specified object.">H5Oare_mdc_flushes_disabled()</a>. An object will be returned to the default flush algorithm when it is closed. All objects will be returned to the default flush algorithm when the file is closed. An object's entries will not necessarily be flushed as a result of calling this function.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gab0fef18d97844c4f83d412c5a22def7b" name="gab0fef18d97844c4f83d412c5a22def7b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab0fef18d97844c4f83d412c5a22def7b">◆ </a></span>H5Oexists_by_name()</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> H5Oexists_by_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">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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determines whether a link resolves to an actual 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>Location identifier of object. 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>The name of the link to check </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns a positive value if the object pointed to by the <code class="param">loc_id</code> and <code class="param">name</code> combination exists. </dd>
|
|
<dd>
|
|
Returns 0 if the object pointed to by the <code class="param">loc_id</code> and <code class="param">name</code> combination does not exist. </dd>
|
|
<dd>
|
|
Returns a negative value when the function fails.</dd></dl>
|
|
<p><a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> allows an application to determine whether the link <code class="param">name</code> in the group or file specified with <code class="param">loc_id</code> resolves to an HDF5 object to open or if the link dangles. The link may be of any type, but hard links will always resolve to objects and do not need to be verified.</p>
|
|
<p>Note that <a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> verifies only that the target object exists. If <code class="param">name</code> includes either a relative path or an absolute path to the target link, intermediate steps along the path must be verified before the existence of the target link can be safely checked. If the path is not verified and an intermediate element of the path does not exist, <a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> will fail. The example in the next paragraph illustrates one step-by-step method for verifying the existence of a link with a relative or absolute path.</p>
|
|
<dl class="section user"><dt>Example</dt><dd>Use the following steps to verify the existence of the link <code>datasetD</code> in the <code>group</code> group1/group2/softlink_to_group3/, where <code>group1</code> is a member of the group specified by <code>loc_id:</code> </dd></dl>
|
|
<dl class="section user"><dt></dt><dd><ul>
|
|
<li>First, use <a class="el" href="group___h5_l.html#ga171be6e41dc1a464edc402df0ebdf801" title="Determines whether a link with the specified name exists in a group.">H5Lexists()</a> to verify that a link named <code>group1</code> exists.</li>
|
|
<li>If <code>group1</code> exists, use <a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> to verify that the link <code>group1</code> resolves to an object.</li>
|
|
<li>If <code>group1</code> exists, use <a class="el" href="group___h5_l.html#ga171be6e41dc1a464edc402df0ebdf801" title="Determines whether a link with the specified name exists in a group.">H5Lexists()</a> again, this time with the name set to <code>group1/group2</code>, to verify that the link <code>group2</code> exists in <code>group1</code>.</li>
|
|
<li>If the <code>group2</code> link exists, use <a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> to verify that <code>group1/group2</code> resolves to an object.</li>
|
|
<li>If <code>group2</code> exists, use <a class="el" href="group___h5_l.html#ga171be6e41dc1a464edc402df0ebdf801" title="Determines whether a link with the specified name exists in a group.">H5Lexists()</a> again, this time with the name set to <code>group1/group2/softlink_to_group3</code>, to verify that the link <code>softlink_to_group3</code> exists in <code>group2</code>.</li>
|
|
<li>If the <code>softlink_to_group3</code> link exists, use <a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> to verify that <code>group1/group2/softlink_to_group3</code> resolves to an object.</li>
|
|
<li>If <code>softlink_to_group3</code> exists, you can now safely use H5Lexists with the name set to <code>group1/group2/softlink_to_group3/datasetD</code> to verify that the target link, <code>datasetD</code>, exists.</li>
|
|
<li>And finally, if the link <code>datasetD</code> exists, use H5Oexists_by_name to verify that <code>group1/group2/softlink_to_group3/datasetD</code> resolves to an object.</li>
|
|
</ul>
|
|
</dd></dl>
|
|
<dl class="section user"><dt></dt><dd>If the link to be verified is specified with an absolute path, the same approach should be used, but starting with the first link in the file's root group. For instance, if <code>datasetD</code> were in <code>/group1/group2/softlink_to_group3</code>, the first call to <a class="el" href="group___h5_l.html#ga171be6e41dc1a464edc402df0ebdf801" title="Determines whether a link with the specified name exists in a group.">H5Lexists()</a> would have name set to <code>/group1</code>.</dd></dl>
|
|
<dl class="section user"><dt></dt><dd>Note that this is an outline and does not include all the necessary details. Depending on circumstances, for example, an application may need to verify the type of an object also.</dd></dl>
|
|
<dl class="section warning"><dt>Warning</dt><dd><b>Failure Modes:</b> </dd>
|
|
<dd>
|
|
If <code class="param">loc_id</code> and <code class="param">name</code> both exist, but the combination does not resolve to an object, the function will return 0 (zero); the function does not fail in this case. </dd>
|
|
<dd>
|
|
If either the location or the link specified by the <code class="param">loc_id</code> and <code class="param">name</code> combination does not exist, the function will fail, returning a negative value. </dd>
|
|
<dd>
|
|
Note that verifying the existence of an object within an HDF5 file is a multistep process. An application can be certain the object does not exist only if <a class="el" href="group___h5_l.html#ga171be6e41dc1a464edc402df0ebdf801" title="Determines whether a link with the specified name exists in a group.">H5Lexists()</a> and <a class="el" href="#gab0fef18d97844c4f83d412c5a22def7b" title="Determines whether a link resolves to an actual object.">H5Oexists_by_name()</a> have been used to verify the existence of the links and groups in the hierarchy above that object. The example above, in the function description, provides a step-by-step description of that verification process.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.5 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gad99f35048cba4534b6393214684f090f" name="gad99f35048cba4534b6393214684f090f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gad99f35048cba4534b6393214684f090f">◆ </a></span>H5Oflush()</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> H5Oflush </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><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Flushes all buffers associated with an HDF5 object to disk. </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>Location identifier of object. The identifier may be that of a file, group, dataset, named datatype, or attribute.</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="#gad99f35048cba4534b6393214684f090f" title="Flushes all buffers associated with an HDF5 object to disk.">H5Oflush()</a> causes all buffers associated with an object to be immediately flushed to disk without removing the data from the cache.</p>
|
|
<p>The object associated with <code class="param">object_id</code> can be any named object in an HDF5 file, including a dataset, a group, or a committed datatype.</p>
|
|
<dl class="section warning"><dt>Warning</dt><dd>H5Oflush doesn't work correctly with parallel. It causes an assertion failure in metadata cache during <a class="el" href="group___h5_f.html#gac55cd91d80822e4f8c2a7f04ea71b124" title="Terminates access to an HDF5 file.">H5Fclose()</a>.</dd></dl>
|
|
<dl class="section note"><dt>Note</dt><dd>HDF5 does not possess full control over buffering. <a class="el" href="#gad99f35048cba4534b6393214684f090f" title="Flushes all buffers associated with an HDF5 object to disk.">H5Oflush()</a> flushes the internal HDF5 buffers and then asks the operating system (the OS) to flush the system buffers for the open files. After that, the OS is responsible for ensuring that the data is actually flushed to disk.</dd></dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group___h5_d.html#ga4a2175a62baa1e35ad2467bb1fdff1f7" title="Flushes all buffers associated with a dataset to disk.">H5Dflush()</a>, <a class="el" href="group___h5_d.html#ga3c1ea7e5db3f62d9cf03dd62d1fb08da" title="Refreshes all buffers associated with a dataset.">H5Drefresh()</a>, <a class="el" href="#gad99f35048cba4534b6393214684f090f" title="Flushes all buffers associated with an HDF5 object to disk.">H5Oflush()</a>, <a class="el" href="group___h5_g.html#ga0a8bdd0eb1b001222c27d3d39a909840" title="Refreshes all buffers associated with a group.">H5Grefresh()</a>, <a class="el" href="#gad99f35048cba4534b6393214684f090f" title="Flushes all buffers associated with an HDF5 object to disk.">H5Oflush()</a>, <a class="el" href="#gaf0318b68be9ab23a92b8a6bee0af9e2f" title="Refreshes all buffers associated with an HDF5 object.">H5Orefresh()</a>, <a class="el" href="group___h5_t.html#gafd60389b49e1e5e6f37caffbe6cbf6e5" title="Flushes all buffers associated with a committed datatype to disk.">H5Tflush()</a>, <a class="el" href="group___h5_t.html#ga5bc56f6b85e114829dc12d6b18d66f4d" title="Refreshes all buffers associated with a committed datatype.">H5Trefresh()</a> </dd>
|
|
<dd>
|
|
<a class="el" href="group___h5_d_o.html#ga1fcbd6fc898ccb603e85e75f9507a76c" title="Appends data to a dataset along a specified dimension.">H5DOappend()</a>, <a class="el" href="group___s_w_m_r.html#ga159be34fbe7e4a959589310ef0196dfe" title="Retrieves free-space section information for a file.">H5Fstart_swmr_write()</a>, <a class="el" href="group___d_a_p_l.html#gacd6803640eebd20e408c330192b09fa6" title="Retrieves the values of the append property that is set up in the dataset access property list.">H5Pget_append_flush()</a>, <a class="el" href="group___f_a_p_l.html#gadb66d434fd8d2f600213b0eec539564e" title="Retrieves the object flush property values from the file access property list.">H5Pget_object_flush_cb()</a>, <a class="el" href="group___d_a_p_l.html#ga2f685a7b3f3a4fa35ddcd1659ab4a835" title="Sets two actions to perform when the size of a dataset's dimension being appended reaches a specified...">H5Pset_append_flush()</a>, <a class="el" href="group___f_a_p_l.html#gab4a4a788af5b6e88381dda0df2efbf19" title="Sets a callback function to invoke when an object flush occurs in the file.">H5Pset_object_flush_cb()</a> </dd>
|
|
<dd>
|
|
<a class="el" href="#gab2fa388aadd1ff154ee150cbb4884c1c" title="Retrieves comment for specified object.">H5Oare_mdc_flushes_disabled()</a>, <a class="el" href="#ga0908be309da1fb4f771c1e264fac22ae" title="Prevents metadata entries for an HDF5 object from being flushed from the metadata cache to storage.">H5Odisable_mdc_flushes()</a>, <a class="el" href="#ga21014920bdabf6973e233796d7174156" title="Enables flushing of dirty metadata entries from a file's metadata cache.">H5Oenable_mdc_flushes()</a></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa1511ce5e2fe01ce7ea58f2f851d694b" name="gaa1511ce5e2fe01ce7ea58f2f851d694b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa1511ce5e2fe01ce7ea58f2f851d694b">◆ </a></span>H5Oget_comment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#af629ed855824cf5955b54529adf78ad6">ssize_t</a> H5Oget_comment </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">char *</td> <td class="paramname"><span class="paramname"><em>comment</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>bufsize</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves comment for specified object. </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>Location identifier of object. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">comment</td><td>The comment </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">bufsize</td><td>Anticipated required size of the comment buffer</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Upon success, returns the number of characters in the comment, not including the <code>NULL</code> terminator, or zero (<code>0</code>) if the object has no comment. The value returned may be larger than <code class="param">bufsize</code>. Otherwise returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gaa1511ce5e2fe01ce7ea58f2f851d694b" title="Retrieves comment for specified object.">H5Oget_comment()</a> retrieves the comment for the specified object in the buffer <code class="param">comment</code>.</p>
|
|
<p>The target object is specified by an identifier, <code class="param">object_id</code>.</p>
|
|
<p>The size in bytes of the buffer <code class="param">comment</code>, including the <code>NULL</code> terminator, is specified in <code class="param">bufsize</code>. If <code class="param">bufsize</code> is unknown, a preliminary <a class="el" href="#gaa1511ce5e2fe01ce7ea58f2f851d694b" title="Retrieves comment for specified object.">H5Oget_comment()</a> call with the pointer <code class="param">comment</code> set to <code>NULL</code> will return the size of the comment <em>without</em> the <code>NULL</code> terminator.</p>
|
|
<p>If <code class="param">bufsize</code> is set to a smaller value than described above, only <code class="param">bufsize</code> bytes of the comment, without a <code>NULL</code> terminator, are returned in <code class="param">comment</code>.</p>
|
|
<p>If an object does not have a comment, an empty string is returned in <code class="param">comment</code>.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gae6d92d597c5a292d342a1bda91e41171" name="gae6d92d597c5a292d342a1bda91e41171"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gae6d92d597c5a292d342a1bda91e41171">◆ </a></span>H5Oget_comment_by_name()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="_h5public_8h.html#af629ed855824cf5955b54529adf78ad6">ssize_t</a> H5Oget_comment_by_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">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">char *</td> <td class="paramname"><span class="paramname"><em>comment</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>bufsize</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves comment for specified 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>Location identifier of object. 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 the object whose comment is to be retrieved </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">comment</td><td>The comment </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">bufsize</td><td>Anticipated required size of the <code class="param">comment</code> buffer </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Upon success, returns the number of characters in the comment, not including the <code>NULL</code> terminator, or zero (<code>0</code>) if the object has no comment. The value returned may be larger than <code>bufsize</code>. Otherwise returns a negative value.</dd></dl>
|
|
<p><a class="el" href="#gae6d92d597c5a292d342a1bda91e41171" title="Retrieves comment for specified object.">H5Oget_comment_by_name()</a> retrieves the comment for an object in the buffer <code class="param">comment</code>.</p>
|
|
<p>The target object is specified by <code class="param">loc_id</code> and <code class="param">name</code>. <code class="param">loc_id</code> can specify any object in the file. <code class="param">name</code> can be one of the following:</p>
|
|
<ul>
|
|
<li>The name of the object relative to <code class="param">loc_id</code> </li>
|
|
<li>An absolute name of the object, starting from <code>/</code>, the file's root group</li>
|
|
<li>A dot (<code></code>.), if <code class="param">loc_id</code> fully specifies the object</li>
|
|
</ul>
|
|
<p>The size in bytes of the comment, including the <code>NULL</code> terminator, is specified in <code class="param">bufsize</code>. If <code class="param">bufsize</code> is unknown, a preliminary <a class="el" href="#gae6d92d597c5a292d342a1bda91e41171" title="Retrieves comment for specified object.">H5Oget_comment_by_name()</a> call with the pointer <code class="param">comment</code> set to <code>NULL</code> will return the size of the comment <em>without</em> the <code>NULL</code> terminator.</p>
|
|
<p>If <code class="param">bufsize</code> is set to a smaller value than described above, only <code class="param">bufsize</code> bytes of the comment, without a <code>NULL</code> terminator, are returned in <code class="param">comment</code>.</p>
|
|
<p>If an object does not have a comment, an empty string is returned in <code class="param">comment</code>.</p>
|
|
<p><code class="param">lapl_id</code> contains a link access property list identifier. A link access property list can come into play when traversing links to access an object.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf3751684a6706e3ba49b863406011f80" name="gaf3751684a6706e3ba49b863406011f80"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf3751684a6706e3ba49b863406011f80">◆ </a></span>H5Oget_info1()</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> H5Oget_info1 </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="struct_h5_o__info1__t.html">H5O_info1_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object specified by an identifier. </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 of object. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information</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#_deprecated000060">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#gaf0fbf7d780a1eefce920facadb198013" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info3()</a> or the macro <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info</a>.</dd></dl>
|
|
<p><a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> specifies an object by its identifier, <code class="param">loc_id</code> , and retrieves the metadata describing that object in <code class="param">oinfo</code>.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>If you are iterating through a lot of different objects to retrieve information via the <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> family of routines, you may see memory building up. This can be due to memory allocation for metadata, such as object headers and messages, when the iterated objects are put into the metadata cache. </dd>
|
|
<dd>
|
|
If the memory buildup is not desirable, you can configure a smaller cache via <a class="el" href="group___m_d_c.html#ga81bc06be69131484eb04d01511b9c8f8" title="Attempts to configure metadata cache of target file.">H5Fset_mdc_config()</a> or set the file access property list via <a class="el" href="group___f_a_p_l.html#gaf234199ad4cf9c708f45893f7f9cd4d3" title="Set the initial metadata cache configuration in the indicated File Access Property List to the suppli...">H5Pset_mdc_config()</a>. A smaller sized cache will force metadata entries to be evicted from the cache, thus freeing the memory associated with the entries.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.10.5 The macro <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info</a> was removed and the function <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> was copied to <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a>. </dd>
|
|
<dd>
|
|
1.10.3 Function <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> was copied to <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a>, and the macro <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info</a> was created. </dd>
|
|
<dd>
|
|
1.8.15 Added a note about the valid values for the <code>version</code> field in the <a class="el" href="struct_h5_o__hdr__info__t.html">H5O_hdr_info_t</a> structure. </dd>
|
|
<dd>
|
|
1.8.11 Fortran subroutine introduced in this release. </dd>
|
|
<dd>
|
|
1.8.10 Added <a class="el" href="_h5_opublic_8h.html#a929ff459574495f461657f6be804cdec">H5O_type_t</a> structure to the Description section. <br />
|
|
Separated <a class="el" href="struct_h5_o__hdr__info__t.html">H5O_hdr_info_t</a> structure from <a class="el" href="_h5version_8h.html#a5f76b0cdd6d68d61f11e46d4f06e50d4">H5O_info_t</a> in the Description section. <br />
|
|
Clarified the definition and implementation of the time fields.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga06f896e14fe4fa940fbc2bc235e0cf74" name="ga06f896e14fe4fa940fbc2bc235e0cf74"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga06f896e14fe4fa940fbc2bc235e0cf74">◆ </a></span>H5Oget_info2()</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> H5Oget_info2 </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="struct_h5_o__info1__t.html">H5O_info1_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object specified by an identifier. </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 of object. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to include in <code class="param">oinfo</code> </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#_deprecated000063">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#gaf0fbf7d780a1eefce920facadb198013" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info3()</a> or the macro <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a>.</dd></dl>
|
|
<p><a class="el" href="#ga06f896e14fe4fa940fbc2bc235e0cf74" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info2()</a> specifies an object by its identifier, <code class="param">loc_id</code> , and retrieves the metadata describing that object in <code class="param">oinfo</code> , an <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code>. This <code>struct</code> type is described in <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a>.</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be filled in the <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code> returned in <code class="param">oinfo</code>. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<dl class="section note"><dt>Note</dt><dd>If you are iterating through a lot of different objects to retrieve information via the <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> family of routines, you may see memory building up. This can be due to memory allocation for metadata, such as object headers and messages, when the iterated objects are put into the metadata cache. </dd>
|
|
<dd>
|
|
If the memory buildup is not desirable, you can configure a smaller cache via <a class="el" href="group___m_d_c.html#ga81bc06be69131484eb04d01511b9c8f8" title="Attempts to configure metadata cache of target file.">H5Fset_mdc_config()</a> or set the file access property list via <a class="el" href="group___f_a_p_l.html#gaf234199ad4cf9c708f45893f7f9cd4d3" title="Set the initial metadata cache configuration in the indicated File Access Property List to the suppli...">H5Pset_mdc_config()</a>. A smaller sized cache will force metadata entries to be evicted from the cache, thus freeing the memory associated with the entries.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf0fbf7d780a1eefce920facadb198013" name="gaf0fbf7d780a1eefce920facadb198013"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf0fbf7d780a1eefce920facadb198013">◆ </a></span>H5Oget_info3()</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> H5Oget_info3 </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="struct_h5_o__info2__t.html">H5O_info2_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object specified by an identifier. </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 of object. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to include in <code class="param">oinfo</code> </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="#gaf0fbf7d780a1eefce920facadb198013" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info3()</a> specifies an object by its identifier, <code class="param">loc_id</code> , and retrieves the metadata describing that object in <code class="param">oinfo</code>.</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be filled in the <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> <code>struct</code> returned in <code class="param">oinfo</code>. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<dl class="section user"><dt>Example</dt><dd>An example snippet from examples/h5_attribute.c: </dd></dl>
|
|
<dl class="section user"><dt></dt><dd><div class="fragment"><div class="line"> </div>
|
|
<div class="line"> <span class="comment">/*</span></div>
|
|
<div class="line"><span class="comment"> * Find string attribute by iterating through all attributes</span></div>
|
|
<div class="line"><span class="comment"> */</span></div>
|
|
<div class="line"> ret = <a class="code hl_function" href="#gaf0fbf7d780a1eefce920facadb198013">H5Oget_info3</a>(dataset, &oinfo, <a class="code hl_define" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a>);</div>
|
|
<div class="line"> <span class="keywordflow">for</span> (i = 0; i < (unsigned)oinfo.<a class="code hl_variable" href="struct_h5_o__info2__t.html#abc37a3659a46ce6096446cfd0d9f67ff">num_attrs</a>; i++) {</div>
|
|
<div class="line"> attr = <a class="code hl_function" href="group___h5_a.html#gab1451cdff4f77dcf9feaee83c8179b2d">H5Aopen_by_idx</a>(dataset, <span class="stringliteral">"."</span>, <a class="code hl_enumvalue" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3a315475479b34056043b4b6583bafb280">H5_INDEX_CRT_ORDER</a>, <a class="code hl_enumvalue" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a80c3e083c0a77063b1a66553decfcb08">H5_ITER_INC</a>, (<a class="code hl_typedef" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a>)i, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>,</div>
|
|
<div class="line"> <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>);</div>
|
|
<div class="line"> atype = <a class="code hl_function" href="group___h5_a.html#ga0b070b714b2e535df2e1cb3005026a44">H5Aget_type</a>(attr);</div>
|
|
<div class="line"> type_class = <a class="code hl_function" href="group___h5_t.html#ga364545c053f925fec65880b235e37898">H5Tget_class</a>(atype);</div>
|
|
<div class="line"> <span class="keywordflow">if</span> (type_class == <a class="code hl_enumvalue" href="_h5_tpublic_8h.html#a071841985f647f69516dbe77d93167f2a2de5d7919fe54466b7cf6a6c0b4265fa">H5T_STRING</a>) {</div>
|
|
<div class="line"> atype_mem = <a class="code hl_function" href="group___h5_t.html#ga05b99133058637e8daa5d745381ddd3d">H5Tget_native_type</a>(atype, <a class="code hl_enumvalue" href="_h5_tpublic_8h.html#a891787104495ea80c677ab7042bfc33da0c49a07f752898162207bb2767b20cc6">H5T_DIR_ASCEND</a>);</div>
|
|
<div class="line"> ret = <a class="code hl_function" href="group___h5_a.html#gaacb27a997f7c98e8a833d0fd63b58f1c">H5Aread</a>(attr, atype_mem, string_out);</div>
|
|
<div class="line"> printf(<span class="stringliteral">"Found string attribute; its index is %d , value = %s \n"</span>, i, string_out);</div>
|
|
<div class="line"> ret = <a class="code hl_function" href="group___h5_t.html#gafcba4db244f6a4d71e99c6e72b8678f0">H5Tclose</a>(atype_mem);</div>
|
|
<div class="line"> }</div>
|
|
<div class="line"> ret = <a class="code hl_function" href="group___h5_a.html#gaef4394b661e2c930879e9868e122bdda">H5Aclose</a>(attr);</div>
|
|
<div class="line"> ret = <a class="code hl_function" href="group___h5_t.html#gafcba4db244f6a4d71e99c6e72b8678f0">H5Tclose</a>(atype);</div>
|
|
<div class="line"> }</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section note"><dt>Note</dt><dd>If you are iterating through a lot of different objects to retrieve information via the <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> family of routines, you may see memory building up. This can be due to memory allocation for metadata, such as object headers and messages, when the iterated objects are put into the metadata cache. </dd>
|
|
<dd>
|
|
If the memory buildup is not desirable, you can configure a smaller cache via <a class="el" href="group___m_d_c.html#ga81bc06be69131484eb04d01511b9c8f8" title="Attempts to configure metadata cache of target file.">H5Fset_mdc_config()</a> or set the file access property list via <a class="el" href="group___f_a_p_l.html#gaf234199ad4cf9c708f45893f7f9cd4d3" title="Set the initial metadata cache configuration in the indicated File Access Property List to the suppli...">H5Pset_mdc_config()</a>. A smaller sized cache will force metadata entries to be evicted from the cache, thus freeing the memory associated with the entries.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga7208d2cf198dcfc875603323841bffae" name="ga7208d2cf198dcfc875603323841bffae"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga7208d2cf198dcfc875603323841bffae">◆ </a></span>H5Oget_info_by_idx1()</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> H5Oget_info_by_idx1 </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>group_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a></td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object, identifying the object by an index position. </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 of object. 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">group_name</td><td>Name of group in which object is located </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Position within the index </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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#_deprecated000062">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx3()</a> or the macro <a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx()</a>.</dd></dl>
|
|
<p><a class="el" href="#ga7208d2cf198dcfc875603323841bffae" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx1()</a> retrieves the metadata describing an object in the <code>struct</code> <code class="param">oinfo</code>, as specified by the location, <code class="param">loc_id</code>, group name, <code class="param">group_name</code>, the index by which objects in that group are tracked, <code class="param">idx_type</code>, the order by which the index is to be traversed, <code class="param">order</code>, and an object's position <code class="param">n</code> within that index.</p>
|
|
<p>If <code class="param">loc_id</code> fully specifies the group in which the object resides, <code class="param">group_name</code> can be a dot (<code></code>.).</p>
|
|
<p>The link access property list, <code>lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.10.5 The macro <a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx</a> was removed and the function <a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx()</a> was copied to <a class="el" href="#ga7208d2cf198dcfc875603323841bffae" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx1()</a>. </dd>
|
|
<dd>
|
|
1.10.3 Function <a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx()</a> was copied to <a class="el" href="#ga7208d2cf198dcfc875603323841bffae" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx1()</a> and the macro <a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx</a> was created. </dd>
|
|
<dd>
|
|
1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga85e15e65922874111da1a5efd5dd7bed" name="ga85e15e65922874111da1a5efd5dd7bed"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga85e15e65922874111da1a5efd5dd7bed">◆ </a></span>H5Oget_info_by_idx2()</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> H5Oget_info_by_idx2 </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>group_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a></td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object, identifying the object by an index position. </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 of object. 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">group_name</td><td>Name of group in which object is located </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Position within the index </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to include in <code class="param">oinfo</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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#_deprecated000065">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function is deprecated in favor of the function <a class="el" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx3()</a> or the macro <a class="el" href="#gafe764884e1530f86079288dd5895a7bd">H5Oget_info_by_idx</a>.</dd></dl>
|
|
<p><a class="el" href="#ga85e15e65922874111da1a5efd5dd7bed" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx2()</a> retrieves the metadata describing an object in the <code>struct</code> <code class="param">oinfo</code>, as specified by the location, <code class="param">loc_id</code>, group name, <code class="param">group_name</code>, the index by which objects in that group are tracked, <code class="param">idx_type</code>, the order by which the index is to be traversed, <code class="param">order</code>, and an object's position <code class="param">n</code> within that index.</p>
|
|
<p><code class="param">oinfo</code>, in which the object information is returned, is a <code>struct</code> of type <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a>. This and other <code>struct</code> types used by <a class="el" href="#ga85e15e65922874111da1a5efd5dd7bed" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx2()</a> are described in <a class="el" href="#ga7208d2cf198dcfc875603323841bffae" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx1()</a>.</p>
|
|
<p>If <code class="param">loc_id</code> fully specifies the group in which the object resides, i<code class="param">group_name</code> can be a dot (<code></code>.).</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be filled in the <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code> returned in <code class="param">oinfo</code>. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file: </p><table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p>The link access property list, <code>lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gafa2f8884f7d3e7fd9b8549f5b59fd9eb" name="gafa2f8884f7d3e7fd9b8549f5b59fd9eb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb">◆ </a></span>H5Oget_info_by_idx3()</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> H5Oget_info_by_idx3 </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>group_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a></td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object, identifying the object by an index position. </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 of object. 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">group_name</td><td>Name of group in which object is located </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Position within the index </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to include in <code class="param">oinfo</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb" title="Retrieves the metadata for an object, identifying the object by an index position.">H5Oget_info_by_idx3()</a> retrieves the metadata describing an object in the <code>struct</code> <code class="param">oinfo</code>, as specified by the location, <code class="param">loc_id</code>, group name, <code class="param">group_name</code>, the index by which objects in that group are tracked, <code class="param">idx_type</code>, the order by which the index is to be traversed, <code class="param">order</code>, and an object's position <code class="param">n</code> within that index.</p>
|
|
<p>If <code class="param">loc_id</code> fully specifies the group in which the object resides, <code class="param">group_name</code> can be a dot (<code></code>.).</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be filled in the <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> <code>struct</code> returned in <code class="param">oinfo</code>. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file: </p><table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p>The link access property list, <code>lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section user"><dt>Example</dt><dd>An example snippet from test/titerate.c: <div class="fragment"><div class="line"> </div>
|
|
<div class="line"> ret = <a class="code hl_function" href="#gafa2f8884f7d3e7fd9b8549f5b59fd9eb">H5Oget_info_by_idx3</a>(root_group, <span class="stringliteral">"."</span>, <a class="code hl_enumvalue" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3a644e6701706be4d37660864336c7bd3e">H5_INDEX_NAME</a>, <a class="code hl_enumvalue" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a80c3e083c0a77063b1a66553decfcb08">H5_ITER_INC</a>, (<a class="code hl_typedef" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a>)i, &oinfo,</div>
|
|
<div class="line"> <a class="code hl_define" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>);</div>
|
|
<div class="line"> CHECK(ret, FAIL, <span class="stringliteral">"H5Oget_info_by_idx"</span>);</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga96ce408ffda805210844246904da2842" name="ga96ce408ffda805210844246904da2842"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga96ce408ffda805210844246904da2842">◆ </a></span>H5Oget_info_by_name1()</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> H5Oget_info_by_name1 </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="struct_h5_o__info1__t.html">H5O_info1_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object, identifying the object by location and relative name. </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 of object. 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, relative to <code class="param">loc_id</code> </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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#_deprecated000061">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#ga0090da86c086c1c63a5acfaed39a035e" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name2()</a> or the macro <a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name</a>.</dd></dl>
|
|
<p><a class="el" href="#ga96ce408ffda805210844246904da2842" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name1()</a> specifies an object's location and name, <code class="param">loc_id</code> and <code class="param">name</code>, respectively, and retrieves the metadata describing that object in <code class="param">oinfo</code>, an <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code>.</p>
|
|
<p>The <code>struct</code> <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> is defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> and described in the <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> function entry.</p>
|
|
<p>The link access property list, <code class="param">lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.10.5 The macro <a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name</a> was removed and the function <a class="el" href="#ga96ce408ffda805210844246904da2842" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name1()</a> was copied to <a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name()</a>. </dd>
|
|
<dd>
|
|
1.10.3 Function <a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name()</a> was copied to <a class="el" href="#ga96ce408ffda805210844246904da2842" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name1()</a> and the macro <a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name</a> was created. </dd>
|
|
<dd>
|
|
1.8.8 Fortran 2003 subroutine and <code>h5o_info_t</code> derived type introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0090da86c086c1c63a5acfaed39a035e" name="ga0090da86c086c1c63a5acfaed39a035e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0090da86c086c1c63a5acfaed39a035e">◆ </a></span>H5Oget_info_by_name2()</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> H5Oget_info_by_name2 </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="struct_h5_o__info1__t.html">H5O_info1_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object, identifying the object by location and relative name. </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 of object. 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, relative to <code class="param">loc_id</code> </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to include in <code class="param">oinfo</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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#_deprecated000064">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#gabb69c962999e027cef0079bbb1282199" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name3()</a> or the macro <a class="el" href="#ga16d8ac07f9244cfccb42b5f309ca6b3c">H5Oget_info_by_name()</a>.</dd></dl>
|
|
<p><a class="el" href="#ga0090da86c086c1c63a5acfaed39a035e" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name2()</a> specifies an object's location and name, <code class="param">loc_id</code> and <code class="param">name</code>, respectively, and retrieves the metadata describing that object in <code class="param">oinfo</code>, an <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code>.</p>
|
|
<p>The <code>struct</code> <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> is defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> and described in the <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> function entry.</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be filled in the <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code> returned in <code class="param">oinfo</code>. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p>The link access property list, <code class="param">lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gabb69c962999e027cef0079bbb1282199" name="gabb69c962999e027cef0079bbb1282199"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gabb69c962999e027cef0079bbb1282199">◆ </a></span>H5Oget_info_by_name3()</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> H5Oget_info_by_name3 </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="struct_h5_o__info2__t.html">H5O_info2_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieves the metadata for an object, identifying the object by location and relative name. </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 of object. 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, relative to <code class="param">loc_id</code> </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to include in <code class="param">oinfo</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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="#gabb69c962999e027cef0079bbb1282199" title="Retrieves the metadata for an object, identifying the object by location and relative name.">H5Oget_info_by_name3()</a> specifies an object's location and name, <code class="param">loc_id</code> and <code class="param">name</code>, respectively, and retrieves the metadata describing that object in <code class="param">oinfo</code>, an <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> struct.</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be filled in the <a class="el" href="struct_h5_o__info2__t.html">H5O_info2_t</a> <code>struct</code> returned in <code class="param">oinfo</code>. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p>The link access property list, <code>lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section user"><dt>Example</dt><dd>An example snippet from test/vol.c: <div class="fragment"><div class="line"> </div>
|
|
<div class="line"> <span class="keywordflow">if</span> (<a class="code hl_function" href="#gabb69c962999e027cef0079bbb1282199">H5Oget_info_by_name3</a>(fid, NATIVE_VOL_TEST_GROUP_NAME, &object_info, <a class="code hl_define" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>) < 0)</div>
|
|
<div class="line"> TEST_ERROR;</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga677d99ab106e2032b991b75b75de0e46" name="ga677d99ab106e2032b991b75b75de0e46"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga677d99ab106e2032b991b75b75de0e46">◆ </a></span>H5Oget_native_info()</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> H5Oget_native_info </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="struct_h5_o__native__info__t.html">H5O_native_info_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieve native file format information about an 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>Location identifier of object. The identifier may be that of a file, group, dataset, named datatype, or attribute. </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return native object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags to determine which fields in <code class="param">oinfo</code> are filled in</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="#ga677d99ab106e2032b991b75b75de0e46" title="Retrieve native file format information about an object.">H5Oget_native_info()</a> retrieves the native file format information for an object specified by <code class="param">loc_id</code>.</p>
|
|
<p>The <code class="param">fields</code> parameter indicates which fields to fill in <a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a>. Possible values defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> are:</p>
|
|
<div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_HDR 0x0008u </span><span class="preprocessor"></span></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_META_SIZE 0x0010u </span><span class="preprocessor"></span></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_ALL (H5O_NATIVE_INFO_HDR | H5O_NATIVE_INFO_META_SIZE)</span></div>
|
|
</div><!-- fragment --><dl class="section user"><dt>Example</dt><dd>An example snippet from test/tfile.c: </dd></dl>
|
|
<dl class="section user"><dt></dt><dd><div class="fragment"><div class="line"> </div>
|
|
<div class="line"> ret = <a class="code hl_function" href="#ga677d99ab106e2032b991b75b75de0e46">H5Oget_native_info</a>(group, &ninfo, <a class="code hl_define" href="_h5_opublic_8h.html#a41832cc0fcd1f5063f28e796733761e2">H5O_NATIVE_INFO_HDR</a>);</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gafa6570d8b0ef6e2aff75093e1f99f67e" name="gafa6570d8b0ef6e2aff75093e1f99f67e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gafa6570d8b0ef6e2aff75093e1f99f67e">◆ </a></span>H5Oget_native_info_by_idx()</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> H5Oget_native_info_by_idx </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>group_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a></td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieve native file format information about an object according to the order of an index. </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 of object. 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">group_name</td><td>Name of group in which object is located </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Position within the index </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return native object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags to determine which fields in <code class="param">oinfo</code> are filled in </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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="#gafa6570d8b0ef6e2aff75093e1f99f67e" title="Retrieve native file format information about an object according to the order of an index.">H5Oget_native_info_by_idx()</a> retrieves the native file format information for an object specified by <code class="param">loc_id</code>, group name, <code class="param">group_name</code>, the index by which objects in the group are tracked, <code class="param">idx_type</code>, the order by which the index is to be traversed, <code class="param">order</code> , and an object's position <code class="param">n</code> within that index.</p>
|
|
<p>The <code class="param">fields</code> parameter indicates which fields to fill in <a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a>. Possible values defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> are: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_HDR 0x0008u </span><span class="preprocessor"></span></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_META_SIZE 0x0010u </span><span class="preprocessor"></span></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_ALL (H5O_NATIVE_INFO_HDR | H5O_NATIVE_INFO_META_SIZE)</span></div>
|
|
</div><!-- fragment --><p>The link access property list, <code>lapl_id</code>, is not currently used; it should be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga296ded21aeac3921fee07272353b8476" name="ga296ded21aeac3921fee07272353b8476"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga296ded21aeac3921fee07272353b8476">◆ </a></span>H5Oget_native_info_by_name()</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> H5Oget_native_info_by_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">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="struct_h5_o__native__info__t.html">H5O_native_info_t</a> *</td> <td class="paramname"><span class="paramname"><em>oinfo</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieve native file format information about an object given its name. </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 of object. 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">[out]</td><td class="paramname">oinfo</td><td>Buffer in which to return native object information </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags to determine which fields in <code class="param">oinfo</code> are filled in </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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="#ga296ded21aeac3921fee07272353b8476" title="Retrieve native file format information about an object given its name.">H5Oget_native_info_by_name()</a> retrieves the native file format information for an object specified by <code class="param">loc_id</code> and the name <code class="param">name</code>.</p>
|
|
<p>The <code class="param">fields</code> parameter which fields to fill in <a class="el" href="struct_h5_o__native__info__t.html">H5O_native_info_t</a>. Possible values defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> are:</p>
|
|
<div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_HDR 0x0008u </span><span class="preprocessor"></span></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_META_SIZE 0x0010u </span><span class="preprocessor"></span></div>
|
|
<div class="line"><span class="preprocessor">#define H5O_NATIVE_INFO_ALL (H5O_NATIVE_INFO_HDR | H5O_NATIVE_INFO_META_SIZE)</span></div>
|
|
</div><!-- fragment --><dl class="section user"><dt>Example</dt><dd>An example snippet from test/tfile.c: <div class="fragment"><div class="line"> </div>
|
|
<div class="line"> <span class="comment">/*</span></div>
|
|
<div class="line"><span class="comment"> * Make sure the root group still has the correct object header version</span></div>
|
|
<div class="line"><span class="comment"> */</span></div>
|
|
<div class="line"> ret = <a class="code hl_function" href="#ga296ded21aeac3921fee07272353b8476">H5Oget_native_info_by_name</a>(file, <span class="stringliteral">"/"</span>, &ninfo, <a class="code hl_define" href="_h5_opublic_8h.html#a41832cc0fcd1f5063f28e796733761e2">H5O_NATIVE_INFO_HDR</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>);</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2086bad6c3cd2a711c306a48c093ff55" name="ga2086bad6c3cd2a711c306a48c093ff55"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2086bad6c3cd2a711c306a48c093ff55">◆ </a></span>H5Oincr_refcount()</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> H5Oincr_refcount </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>object_id</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Increments an object reference count. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">object_id</td><td>Location identifier of object. The identifier may be that of a file, group, dataset, named datatype, or attribute.</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="#ga2086bad6c3cd2a711c306a48c093ff55" title="Increments an object reference count.">H5Oincr_refcount()</a> increments the hard link reference count for an object. It should be used any time a user-defined link that references an object by address is added. When the link is deleted, <a class="el" href="#ga60c20da5e244c28a653d4fa23d316b44" title="Decrements an object reference count.">H5Odecr_refcount()</a> should be used.</p>
|
|
<p>An object's reference count is the number of hard links in the file that point to that object. See the “Programming Model” section of the HDF5 Groups chapter in the – <em><a class="el" href="_u_g.html">HDF5 User Guide</a></em> for a complete discussion of reference counts.</p>
|
|
<p>If a user application needs to determine an object's reference count, an <a class="el" href="#gaf4f302a33faba9e1c2b5f64c62ca4ed5">H5Oget_info()</a> call is required; the reference count is returned in the <code>rc</code> field of the <a class="el" href="_h5version_8h.html#a5f76b0cdd6d68d61f11e46d4f06e50d4">H5O_info_t</a> <code>struct</code>.</p>
|
|
<dl class="section warning"><dt>Warning</dt><dd>This function must be used with care! </dd>
|
|
<dd>
|
|
Improper use can lead to inaccessible data, wasted space in the file, or <b><em>file corruption</em></b>.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2c97dd58e64b67d16325fceb7e02113f" name="ga2c97dd58e64b67d16325fceb7e02113f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2c97dd58e64b67d16325fceb7e02113f">◆ </a></span>H5Olink()</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> H5Olink </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>new_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>new_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>lcpl_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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a hard link to an object in an HDF5 file. </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 to be linked </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">new_loc_id</td><td>Location identifier at which object is to be linked; may be a file, group, dataset, named datatype or attribute identifier. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">new_name</td><td>Name of link to be created, relative to <code class="param">new_loc_id</code>. </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lcpl_id</td><td>Link creation property list identifier </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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="#ga2c97dd58e64b67d16325fceb7e02113f" title="Creates a hard link to an object in an HDF5 file.">H5Olink()</a> creates a new hard link to an object in an HDF5 file. <code class="param">new_loc_id</code> and <code class="param"><code class="param">new_link_name</code> specify</code> the location and name of the new link, while <code class="param">object_id</code> identifies the object that the link points to.</p>
|
|
<p><a class="el" href="#ga2c97dd58e64b67d16325fceb7e02113f" title="Creates a hard link to an object in an HDF5 file.">H5Olink()</a> is designed for two purposes:</p><ul>
|
|
<li>To create the first hard link to an object that has just been created with <a class="el" href="group___h5_d.html#ga15a77e82383d821fee8ecbf9ab8408cb" title="Creates a dataset in a file without linking it into the file structure.">H5Dcreate_anon()</a>, <a class="el" href="group___h5_g.html#gab52641f0736281faaaae4e3039bbb344" title="Creates a new empty group without linking it into the file structure.">H5Gcreate_anon()</a>, or <a class="el" href="group___h5_t.html#ga510d2e4ab51247ab1a915be701001581" title="Commits a transient datatype to a file, creating a newly named datatype, but does not link it into th...">H5Tcommit_anon()</a>.</li>
|
|
<li>To add additional structure to an existing file so that, for example, an object can be shared among multiple groups.</li>
|
|
</ul>
|
|
<p><code class="param">lcpl</code> and <code class="param">lapl</code> are the link creation and access property lists associated with the new link.</p>
|
|
<dl class="section user"><dt>Example:</dt><dd>To create a new link to an object while simultaneously creating missing intermediate groups: Suppose that an application must create the group C with the path /A/B01/C but may not know at run time whether the groups A and B01 exist. The following code ensures that those groups are created if they are missing: </dd></dl>
|
|
<dl class="section user"><dt></dt><dd><div class="fragment"><div class="line"><span class="comment">// Creates a link creation property list (LCPL).</span></div>
|
|
<div class="line"><a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> lcpl_id = <a class="code hl_function" href="group___p_l_c_r.html#gaf1b11da01d4d45d788c45f8bc5f0cbfa">H5Pcreate</a>(<a class="code hl_define" href="_h5_ppublic_8h.html#ad2c1d10104f0262c826350ccbf7c49f2">H5P_LINK_CREATE</a>);</div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="comment">// Sets "create missing intermediate groups" property in that LCPL.</span></div>
|
|
<div class="line"><span class="keywordtype">int</span> status = <a class="code hl_function" href="group___l_c_p_l.html#ga66c4c5d3f34e5cf65d00e47a5387383c">H5Pset_create_intermediate_group</a>(lcpl_id, <span class="keyword">true</span>);</div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="comment">// Creates a group without linking it into the file structure.</span></div>
|
|
<div class="line"><a class="code hl_typedef" href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a> gid = <a class="code hl_function" href="group___h5_g.html#gab52641f0736281faaaae4e3039bbb344">H5Gcreate_anon</a>(file_id, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>);</div>
|
|
<div class="line"> </div>
|
|
<div class="line"><span class="comment">// Links group into file structure.</span></div>
|
|
<div class="line">status = <a class="code hl_function" href="#ga2c97dd58e64b67d16325fceb7e02113f">H5Olink</a>(gid, file_id, <span class="stringliteral">"/A/B01/C"</span>, lcpl_id, <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>);</div>
|
|
<div class="ttc" id="a_h5_ipublic_8h_html_a0045db7ff9c22ad35db6ae91662e1943"><div class="ttname"><a href="_h5_ipublic_8h.html#a0045db7ff9c22ad35db6ae91662e1943">hid_t</a></div><div class="ttdeci">int64_t hid_t</div><div class="ttdef"><b>Definition</b> H5Ipublic.h:60</div></div>
|
|
<div class="ttc" id="a_h5_ppublic_8h_html_ad2c1d10104f0262c826350ccbf7c49f2"><div class="ttname"><a href="_h5_ppublic_8h.html#ad2c1d10104f0262c826350ccbf7c49f2">H5P_LINK_CREATE</a></div><div class="ttdeci">#define H5P_LINK_CREATE</div><div class="ttdef"><b>Definition</b> H5Ppublic.h:116</div></div>
|
|
<div class="ttc" id="a_h5_ppublic_8h_html_afa85e97bfbf9bf1c58e39263846c568f"><div class="ttname"><a href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a></div><div class="ttdeci">#define H5P_DEFAULT</div><div class="ttdef"><b>Definition</b> H5Ppublic.h:220</div></div>
|
|
<div class="ttc" id="agroup___h5_g_html_gab52641f0736281faaaae4e3039bbb344"><div class="ttname"><a href="group___h5_g.html#gab52641f0736281faaaae4e3039bbb344">H5Gcreate_anon</a></div><div class="ttdeci">hid_t H5Gcreate_anon(hid_t loc_id, hid_t gcpl_id, hid_t gapl_id)</div><div class="ttdoc">Creates a new empty group without linking it into the file structure.</div></div>
|
|
<div class="ttc" id="agroup___h5_o_html_ga2c97dd58e64b67d16325fceb7e02113f"><div class="ttname"><a href="#ga2c97dd58e64b67d16325fceb7e02113f">H5Olink</a></div><div class="ttdeci">herr_t H5Olink(hid_t obj_id, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, hid_t lapl_id)</div><div class="ttdoc">Creates a hard link to an object in an HDF5 file.</div></div>
|
|
<div class="ttc" id="agroup___l_c_p_l_html_ga66c4c5d3f34e5cf65d00e47a5387383c"><div class="ttname"><a href="group___l_c_p_l.html#ga66c4c5d3f34e5cf65d00e47a5387383c">H5Pset_create_intermediate_group</a></div><div class="ttdeci">herr_t H5Pset_create_intermediate_group(hid_t plist_id, unsigned crt_intmd)</div><div class="ttdoc">Specifies in property list whether to create missing intermediate groups.</div></div>
|
|
<div class="ttc" id="agroup___p_l_c_r_html_gaf1b11da01d4d45d788c45f8bc5f0cbfa"><div class="ttname"><a href="group___p_l_c_r.html#gaf1b11da01d4d45d788c45f8bc5f0cbfa">H5Pcreate</a></div><div class="ttdeci">hid_t H5Pcreate(hid_t cls_id)</div><div class="ttdoc">Creates a new property list as an instance of a property list class.</div></div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section user"><dt></dt><dd>Note that unless the object is intended to be temporary, the H5O_LINK call is mandatory if an object created with one of the H5*_CREATE_ANON functions (or with H5T_COMMIT_ANON) is to be retained in the file; without an H5O_LINK call, the object will not be linked into the HDF5 file structure and will be deleted when the file is closed.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.1 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga9f635f58c7ddf17f87c253bfbca08bc1" name="ga9f635f58c7ddf17f87c253bfbca08bc1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga9f635f58c7ddf17f87c253bfbca08bc1">◆ </a></span>H5Oopen()</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> H5Oopen </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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens an object in an HDF5 file by location identifier and path name. </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 of object. 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>Path to the object; relative to <code class="param">loc_id</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns an object 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="#ga9f635f58c7ddf17f87c253bfbca08bc1" title="Opens an object in an HDF5 file by location identifier and path name.">H5Oopen()</a> opens a group, dataset, or committed (named) datatype specified by a location, <code class="param">loc_id</code>, and a path name, <code class="param">name</code>, in an HDF5 file.</p>
|
|
<p>This function opens the object in the same manner as <a class="el" href="group___h5_g.html#ga3eca6807deff4f9e51fc5fe0befc2245">H5Gopen()</a>, <a class="el" href="group___h5_t.html#ga1d14b407603fdcedfbed1f723784c209">H5Topen()</a>, and <a class="el" href="_h5version_8h.html#a7dba2e5b2045f31c0932123ffb54f7a3">H5Dopen()</a>. However, <a class="el" href="#ga9f635f58c7ddf17f87c253bfbca08bc1" title="Opens an object in an HDF5 file by location identifier and path name.">H5Oopen()</a> does not require the type of object to be known beforehand. This can be useful with user-defined links, for instance, when only a path may be known.</p>
|
|
<p><a class="el" href="#ga9f635f58c7ddf17f87c253bfbca08bc1" title="Opens an object in an HDF5 file by location identifier and path name.">H5Oopen()</a> cannot be used to open a dataspace, attribute, property list, or file.</p>
|
|
<p>Once an object of an unknown type has been opened with <a class="el" href="#ga9f635f58c7ddf17f87c253bfbca08bc1" title="Opens an object in an HDF5 file by location identifier and path name.">H5Oopen()</a>, the type of that object can be determined by means of an <a class="el" href="group___h5_i.html#ga4941435d4d64de3d7095d2316f415f2d" title="Retrieves the type of an object.">H5Iget_type()</a> call.</p>
|
|
<p><code class="param">loc_id</code> may be a file, group, dataset, named datatype, or attribute. If an attribute is specified for <code class="param">loc_id</code> then the object where the attribute is attached will be accessed.</p>
|
|
<p><code class="param">name</code> must be the path to that object relative to <code class="param">loc_id</code>.</p>
|
|
<p><code class="param">lapl_id</code> is the link access property list associated with the link pointing to the object. If default link access properties are appropriate, this can be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>.</p>
|
|
<p>When it is no longer needed, the opened object should be closed with <a class="el" href="#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a>, <a class="el" href="group___h5_g.html#ga8dbe20b390d2504f0bd3589ed8f4e221" title="Closes the specified group.">H5Gclose()</a>, <a class="el" href="group___h5_t.html#gafcba4db244f6a4d71e99c6e72b8678f0" title="Releases a datatype.">H5Tclose()</a>, or <a class="el" href="group___h5_d.html#gae47c3f38db49db127faf221624c30609" title="Closes the specified dataset.">H5Dclose()</a>.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.1 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga137f3823adab4daaaf8fe87b40453fa2" name="ga137f3823adab4daaaf8fe87b40453fa2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga137f3823adab4daaaf8fe87b40453fa2">◆ </a></span>H5Oopen_by_addr()</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> H5Oopen_by_addr </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="_h5public_8h.html#a8c86e866f40d7167cf9a1934c72b856f">haddr_t</a></td> <td class="paramname"><span class="paramname"><em>addr</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens an object using its address within an HDF5 file. </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 of object. 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">addr</td><td>Object's address in the file</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns an object identifier if successful; otherwise returns <a class="el" href="_h5_ipublic_8h.html#a01eab13dccc91afd6909d74dccb780ba">H5I_INVALID_HID</a>.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000059">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#ga2ea3627cf171d0565307702a5e203262" title="Opens an object in an HDF5 file using its VOL independent token.">H5Oopen_by_token()</a>.</dd></dl>
|
|
<p><a class="el" href="#ga137f3823adab4daaaf8fe87b40453fa2" title="Opens an object using its address within an HDF5 file.">H5Oopen_by_addr()</a> opens a group, dataset, or committed (named) datatype using its address within an HDF5 file, <code class="param">addr</code>. The resulting opened object is identical to an object opened with <a class="el" href="#ga9f635f58c7ddf17f87c253bfbca08bc1" title="Opens an object in an HDF5 file by location identifier and path name.">H5Oopen()</a> and should be closed with <a class="el" href="#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> or an object-type-specific closing function (such as <a class="el" href="group___h5_g.html#ga8dbe20b390d2504f0bd3589ed8f4e221" title="Closes the specified group.">H5Gclose()</a>) when no longer needed.</p>
|
|
<p><code class="param">loc_id</code> is a location identifier in the file.</p>
|
|
<p>The object's address within the file, <code class="param">addr</code>, is the byte offset of the first byte of the object header from the beginning of the HDF5 file space, i.e., from the beginning of the superblock (see the “HDF5 Storage Model” section of the The HDF5 Data Model and File Structure chapter of the <em>HDF5 User's Guide</em>.)</p>
|
|
<p><code class="param">addr</code> can be obtained via either of two function calls. <a class="el" href="group___h5_g.html#gad75244979da933ba0b3ad25258850a6b" title="Returns information about an object.">H5Gget_objinfo()</a> returns the object's address in the <code>objno</code> field of the <a class="el" href="struct_h5_g__stat__t.html">H5G_stat_t</a> <code>struct</code>; <a class="el" href="group___h5_l.html#ga97279697f3010a6ad31dd7f4341eb698">H5Lget_info()</a> returns the address in the <code>address</code> field of the <a class="el" href="_h5version_8h.html#af542682cfe46de7b0759e52a1608d1e4">H5L_info_t</a> <code>struct</code>.</p>
|
|
<p>The address of the HDF5 file on a physical device has no effect on <a class="el" href="#ga137f3823adab4daaaf8fe87b40453fa2" title="Opens an object using its address within an HDF5 file.">H5Oopen_by_addr()</a>, nor does the use of any file driver. As stated above, the object address is its offset within the HDF5 file; HDF5's file drivers will transparently map this to an address on a storage device.</p>
|
|
<dl class="section warning"><dt>Warning</dt><dd>This function must be used with care! </dd>
|
|
<dd>
|
|
Improper use can lead to inaccessible data, wasted space in the file, or <b><em>file corruption</em></b>. </dd>
|
|
<dd>
|
|
This function is dangerous if called on an invalid address. The risk can be safely overcome by retrieving the object address with <a class="el" href="group___h5_g.html#gad75244979da933ba0b3ad25258850a6b" title="Returns information about an object.">H5Gget_objinfo()</a> or <a class="el" href="group___h5_l.html#ga97279697f3010a6ad31dd7f4341eb698">H5Lget_info()</a> immediately before calling <a class="el" href="#ga137f3823adab4daaaf8fe87b40453fa2" title="Opens an object using its address within an HDF5 file.">H5Oopen_by_addr()</a>. The immediacy of the operation can be important; if time has elapsed and the object has been deleted from the file, the address will be invalid, and file corruption can result.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.4 Fortran subroutine added in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaeb66e5cbb3ca79890fc284a0b06762be" name="gaeb66e5cbb3ca79890fc284a0b06762be"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaeb66e5cbb3ca79890fc284a0b06762be">◆ </a></span>H5Oopen_by_idx()</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> H5Oopen_by_idx </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>group_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a7f81cce70fb546af88da24d9285d3c1c">hsize_t</a></td> <td class="paramname"><span class="paramname"><em>n</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens the nth object in a group. </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 of object. 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">group_name</td><td>Name of group, relative to <code class="param">loc_id</code>, in which object is located </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Object to open </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns an object 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="#gaeb66e5cbb3ca79890fc284a0b06762be" title="Opens the nth object in a group.">H5Oopen_by_idx()</a> opens the nth object in the group specified by <code class="param">loc_id</code> and <code class="param">group_name</code>.</p>
|
|
<p><code class="param">loc_id</code> specifies a location identifier. <code class="param">group_name</code> specifies the group relative to <code class="param">loc_id</code> in which the object can be found. If <code class="param">loc_id</code> fully specifies the group in which the object resides, <code class="param">group_name</code> can be a dot (.).</p>
|
|
<p>The specific object to be opened within the group is specified by the three parameters: <code class="param">idx_type</code>, <code class="param">order</code> and <code class="param">n</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the type of index by which objects are ordered. Valid index types include the following:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<td><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3a644e6701706be4d37660864336c7bd3e">H5_INDEX_NAME</a></td><td>Lexicographic order on name</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3a315475479b34056043b4b6583bafb280">H5_INDEX_CRT_ORDER</a></td><td>Index on creation order</td></tr>
|
|
</table>
|
|
<p><code class="param">order</code> specifies the order in which the objects are to be referenced for the purposes of this function. Valid orders include the following:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<td><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a80c3e083c0a77063b1a66553decfcb08">H5_ITER_INC</a></td><td>Increasing order</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a2f123d7a4d68054e8aa2d0f1d0a3fcd2">H5_ITER_DEC</a></td><td>Decreasing order</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a15eebaf7d85d5e37e918858634e29d01">H5_ITER_NATIVE</a></td><td>Fastest available order</td></tr>
|
|
</table>
|
|
<p>Note that for <a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a15eebaf7d85d5e37e918858634e29d01">H5_ITER_NATIVE</a>, rather than implying a particular order, it instructs the HDF5 library to iterate through the objects in the fastest available order, i.e., in a natural order.</p>
|
|
<p><code class="param">n</code> specifies the position of the object within the index. Note that this count is zero-based; 0 (zero) indicates that the function will return the value of the first object; if <code class="param">n</code> is 5, the function will return the value of the sixth object; etc.</p>
|
|
<p><code class="param">lapl_id</code> specifies the link access property list to be used in accessing the object.</p>
|
|
<p>An object opened with this function should be closed when it is no longer needed so that resource leaks will not develop. <a class="el" href="#ga545ad7c54987013ebd50b40fe9e73c61" title="Closes an object in an HDF5 file.">H5Oclose()</a> can be used to close groups, datasets, or committed datatypes.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.1 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2ea3627cf171d0565307702a5e203262" name="ga2ea3627cf171d0565307702a5e203262"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2ea3627cf171d0565307702a5e203262">◆ </a></span>H5Oopen_by_token()</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> H5Oopen_by_token </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="struct_h5_o__token__t.html">H5O_token_t</a></td> <td class="paramname"><span class="paramname"><em>token</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Opens an object in an HDF5 file using its VOL independent token. </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 of object. 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">token</td><td>Object token</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns an object 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="#ga2ea3627cf171d0565307702a5e203262" title="Opens an object in an HDF5 file using its VOL independent token.">H5Oopen_by_token()</a> opens an object specified by the object identifier, <code class="param">loc_id</code> and object token, <code class="param">token</code>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf0318b68be9ab23a92b8a6bee0af9e2f" name="gaf0318b68be9ab23a92b8a6bee0af9e2f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf0318b68be9ab23a92b8a6bee0af9e2f">◆ </a></span>H5Orefresh()</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> H5Orefresh </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>oid</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Refreshes all buffers associated with an HDF5 object. </p>
|
|
<hr />
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">oid</td><td>Location identifier of object. The identifier may be that of a file, group, dataset, named datatype, or attribute.</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="#gaf0318b68be9ab23a92b8a6bee0af9e2f" title="Refreshes all buffers associated with an HDF5 object.">H5Orefresh()</a> causes all buffers associated with an object to be cleared and immediately re-loaded with updated contents from disk.</p>
|
|
<p>This function essentially closes the object, evicts all metadata associated with it from the cache, and then re-opens the object. The reopened object is automatically re-registered with the same identifier.</p>
|
|
<p>The object associated with <code class="param">oid</code> can be any named object in an HDF5 file including a dataset, a group, or a committed datatype.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga8b5cf8e916204e29616516046121f631" name="ga8b5cf8e916204e29616516046121f631"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga8b5cf8e916204e29616516046121f631">◆ </a></span>H5Oset_comment()</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> H5Oset_comment </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">const char *</td> <td class="paramname"><span class="paramname"><em>comment</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets comment for specified object. </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>Location identifier of object. 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">comment</td><td>The new comment</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="#ga8b5cf8e916204e29616516046121f631" title="Sets comment for specified object.">H5Oset_comment()</a> sets the comment for the specified object to the contents of <code class="param">comment</code>. Any previously existing comment is overwritten.</p>
|
|
<p>The target object is specified by an identifier, <code class="param">obj_id</code>. If <code class="param">comment</code> is an empty string or a null pointer, any existing comment message is removed from the object.</p>
|
|
<p>Comments should be relatively short, null-terminated, ASCII strings.</p>
|
|
<p>Comments can be attached to any object that has an object header. Datasets, groups, and committed (named) datatypes have object headers. Symbolic links do not have object headers.</p>
|
|
<p>If a comment is being added to an object attribute, this comment will be attached to the object to which the attribute belongs and not to the attribute itself.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gafeb5242de7f1080b5c19f4fe19784505" name="gafeb5242de7f1080b5c19f4fe19784505"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gafeb5242de7f1080b5c19f4fe19784505">◆ </a></span>H5Oset_comment_by_name()</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> H5Oset_comment_by_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">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>comment</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets comment for specified 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>Location identifier of object. 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 the object whose comment is to be set or reset </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">comment</td><td>The new comment </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</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="#gafeb5242de7f1080b5c19f4fe19784505" title="Sets comment for specified object.">H5Oset_comment_by_name()</a> sets the comment for the specified object to the contents of <code class="param">comment</code>. Any previously existing comment is overwritten.</p>
|
|
<p>The target object is specified by <code class="param">loc_id</code> and <code class="param">name</code>. <code class="param">loc_id</code> can specify any object in the file. <code class="param">name</code> can be one of the following:</p>
|
|
<ul>
|
|
<li>The name of the object specified as a path relative to <code class="param">loc_id</code> </li>
|
|
<li>An absolute name of the object, starting from <code>/</code>, the file's root group</li>
|
|
<li>A dot (<code></code>.), if <code class="param">loc_id</code> fully specifies the object</li>
|
|
</ul>
|
|
<p>If <code class="param">comment</code> is an empty string or a null pointer, any existing comment message is removed from the object.</p>
|
|
<p>Comments should be relatively short, null-terminated, ASCII strings.</p>
|
|
<p>Comments can be attached to any object that has an object header. Datasets, groups, and committed (named) datatypes have object headers. Symbolic links do not have object headers.</p>
|
|
<p>If a comment is being added to an object attribute, this comment will be attached to the object to which the attribute belongs and not to the attribute itself.</p>
|
|
<p><code class="param">lapl_id</code> contains a link access property list identifier. A link access property list can come into play when traversing links to access an object.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaeb8da4fbe62f8a3cd9146a7ac1093562" name="gaeb8da4fbe62f8a3cd9146a7ac1093562"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaeb8da4fbe62f8a3cd9146a7ac1093562">◆ </a></span>H5Otoken_cmp()</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> H5Otoken_cmp </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 <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *</td> <td class="paramname"><span class="paramname"><em>token1</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *</td> <td class="paramname"><span class="paramname"><em>token2</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int *</td> <td class="paramname"><span class="paramname"><em>cmp_value</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Compares two VOL connector object tokens. </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 of object. 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">token1</td><td>First object token </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">token2</td><td>Second object token </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">cmp_value</td><td>Comparison value</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="#gaeb8da4fbe62f8a3cd9146a7ac1093562" title="Compares two VOL connector object tokens.">H5Otoken_cmp()</a> compares two VOL connector object tokens, <code class="param">token1</code> and <code class="param">token2</code> for the file or group identifier specified by <code class="param">loc_id</code>. Both object tokens must be from the same VOL connector class.</p>
|
|
<p><a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> is defined in <a class="el" href="_h5public_8h.html">H5public.h</a> as follows: </p><div class="fragment"><div class="line"></div>
|
|
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="struct_h5_o__token__t.html">H5O_token_t</a> {</div>
|
|
<div class="line"> uint8_t <a class="code hl_variable" href="struct_h5_o__token__t.html#adaac031833a234d10c1ff3130f6aa4cc">__data</a>[<a class="code hl_define" href="_h5public_8h.html#ac91e46b83ee173747f9792b33755ff0e">H5O_MAX_TOKEN_SIZE</a>];</div>
|
|
<div class="line">} <a class="code hl_struct" href="struct_h5_o__token__t.html">H5O_token_t</a>;</div>
|
|
</div><!-- fragment --><p>A comparison value, <code class="param">cmp_value</code>, is returned, which indicates the result of the comparison:</p>
|
|
<table class="doxtable">
|
|
<tr>
|
|
<th>cmp_value </th><th>Result </th></tr>
|
|
<tr>
|
|
<td>> 0 </td><td><code class="param">token1</code> > <code class="param">token2</code> </td></tr>
|
|
<tr>
|
|
<td>< 0 </td><td><code class="param">token1</code> < <code class="param">token2</code> </td></tr>
|
|
<tr>
|
|
<td>0 </td><td><code class="param">token1</code> = <code class="param">token2</code> </td></tr>
|
|
</table>
|
|
<dl class="section user"><dt>Example</dt><dd>An example snippet from test/links.c: <div class="fragment"><div class="line"> </div>
|
|
<div class="line"> <span class="keywordflow">if</span> (<a class="code hl_function" href="#gaeb8da4fbe62f8a3cd9146a7ac1093562">H5Otoken_cmp</a>(file, &oinfo1.<a class="code hl_variable" href="struct_h5_o__info2__t.html#aec1bc6735ca478c420f5ff729bcb3888">token</a>, &oinfo2.<a class="code hl_variable" href="struct_h5_o__info2__t.html#aec1bc6735ca478c420f5ff729bcb3888">token</a>, &token_cmp) < 0)</div>
|
|
<div class="line"> FAIL_STACK_ERROR;</div>
|
|
<div class="line"> <span class="keywordflow">if</span> (token_cmp) {</div>
|
|
<div class="line"> H5_FAILED();</div>
|
|
<div class="line"> puts(<span class="stringliteral">" Hard link test failed. Link seems not to point to the "</span>);</div>
|
|
<div class="line"> puts(<span class="stringliteral">" expected file location."</span>);</div>
|
|
<div class="line"> TEST_ERROR;</div>
|
|
<div class="line"> } <span class="comment">/* end if */</span></div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5136c14b4e907f15007030d7a6d6cd24" name="ga5136c14b4e907f15007030d7a6d6cd24"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5136c14b4e907f15007030d7a6d6cd24">◆ </a></span>H5Otoken_from_str()</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> H5Otoken_from_str </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>token_str</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *</td> <td class="paramname"><span class="paramname"><em>token</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Deserializes a string into a connector object token. </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 of object. 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">token_str</td><td>Object token string </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">token</td><td>Connector object token</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="#ga5136c14b4e907f15007030d7a6d6cd24" title="Deserializes a string into a connector object token.">H5Otoken_from_str()</a> deserializes a string, <code class="param">token_str</code>, into a connector object token, <code class="param">token</code>, for the object specified by the location identifier, <code class="param">loc_id</code>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2bdd7528090f7f2c4b361ab4cc7735f6" name="ga2bdd7528090f7f2c4b361ab4cc7735f6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2bdd7528090f7f2c4b361ab4cc7735f6">◆ </a></span>H5Otoken_to_str()</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> H5Otoken_to_str </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 <a class="el" href="struct_h5_o__token__t.html">H5O_token_t</a> *</td> <td class="paramname"><span class="paramname"><em>token</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char **</td> <td class="paramname"><span class="paramname"><em>token_str</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Serializes a connector's object token into a string. </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 of object. 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">token</td><td>Connector object token </td></tr>
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">token_str</td><td>String for connector object token <code class="param">token</code> </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="#ga2bdd7528090f7f2c4b361ab4cc7735f6" title="Serializes a connector's object token into a string.">H5Otoken_to_str()</a> serializes a connector's object token specified by <code class="param">token</code> and the location identifier for the object, <code class="param">loc_id</code>, into a string, <code class="param">token_str</code>.</p>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6efdb2a0a9fe9fe46695cc0f7bd993e7" name="ga6efdb2a0a9fe9fe46695cc0f7bd993e7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7">◆ </a></span>H5Ovisit1()</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> H5Ovisit1 </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="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a></td> <td class="paramname"><span class="paramname"><em>op</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>op_data</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Recursively visits all objects accessible from a specified object. </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>Location identifier of object. 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">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op</td><td>Callback function passing data regarding the object to the calling application </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op_data</td><td>User-defined pointer to data required by the application for its processing of the object</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.</dd>
|
|
<dd>
|
|
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000066">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a> or the macro <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit</a>.</dd></dl>
|
|
<p><a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a> is a recursive iteration function to visit the object <code class="param">obj_id</code> and, if <code class="param">obj_id</code> is a group, all objects in and below it in an HDF5 file, thus providing a mechanism for an application to perform a common set of operations across all of those objects or a dynamically selected subset. For non-recursive iteration across the members of a group, see <a class="el" href="group___t_r_a_v.html#ga1e7c0a8cf17699563c02e128f27042f1" title="Iterates over links in a group, with user callback routine, according to the order within an index.">H5Literate1()</a>.</p>
|
|
<p>If <code class="param">obj_id</code> is a group identifier, that group serves as the root of a recursive iteration. If <code class="param">obj_id</code> is a file identifier, that file's root group serves as the root of the recursive iteration. If <code class="param">obj_id</code> is an attribute identifier, then the object where the attribute is attached will be iterated. If <code class="param">obj_id</code> is any other type of object, such as a dataset or named datatype, there is no iteration.</p>
|
|
<p>Two parameters are used to establish the iteration: <code class="param">idx_type</code> and <code class="param">order</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the index to be used. If the links in a group have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly.</p>
|
|
<p>Note that the index type passed in <code class="param">idx_type</code> is a <em>best effort</em> setting. If the application passes in a value indicating iteration in creation order and a group is encountered that was not tracked in creation order, that group will be iterated over in alphanumeric order by name, or <em>name order</em>. (<em>Name order</em> is the native order used by the HDF5 library and is always available.)</p>
|
|
<p><code class="param">order</code> specifies the order in which objects are to be inspected along the index specified in <code class="param">idx_type</code>.</p>
|
|
<p><a class="el" href="group___t_r_a_v.html#ga5424ef7043c82147490d027a0e8a59ef" title="Recursively visits all links starting from a specified group.">H5Lvisit1()</a> and <a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a> are companion functions: one for examining and operating on links; the other for examining and operating on the objects that those links point to. Both functions ensure that by the time the function completes successfully, every link or object below the specified point in the file has been presented to the application for whatever processing the application requires. These functions assume that the membership of the group being iterated over remains unchanged through the iteration; if any of the links in the group change during the iteration, the resulting behavior is undefined.</p>
|
|
<dl class="section version"><dt>Version</dt><dd>1.10.5 The macro <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit</a> was removed and the function <a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a> was copied to <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit()</a>. </dd>
|
|
<dd>
|
|
1.10.3 Function <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit()</a> was copied to <a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a>, and the macro <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit</a> was created. </dd>
|
|
<dd>
|
|
1.8.8 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa4ab542f581f4fc9a4eaa95debb29c9e" name="gaa4ab542f581f4fc9a4eaa95debb29c9e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa4ab542f581f4fc9a4eaa95debb29c9e">◆ </a></span>H5Ovisit2()</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> H5Ovisit2 </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="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a></td> <td class="paramname"><span class="paramname"><em>op</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>op_data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Recursively visits all objects accessible from a specified object. </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>Location identifier of object. 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">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op</td><td>Callback function passing data regarding the object to the calling application </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op_data</td><td>User-defined pointer to data required by the application for its processing of the object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to be retrieved to the callback <code class="param">op</code> </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.</dd>
|
|
<dd>
|
|
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000068">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a> or the macro <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit</a>.</dd></dl>
|
|
<p><a class="el" href="#gaa4ab542f581f4fc9a4eaa95debb29c9e" title="Recursively visits all objects accessible from a specified object.">H5Ovisit2()</a> is a recursive iteration function to visit the object <code class="param">obj_id</code> and, if <code class="param">obj_id</code> is a group, all objects in and below it in an HDF5 file, thus providing a mechanism for an application to perform a common set of operations across all of those objects or a dynamically selected subset. For non-recursive iteration across the members of a group, see <a class="el" href="group___t_r_a_v.html#ga1e7c0a8cf17699563c02e128f27042f1" title="Iterates over links in a group, with user callback routine, according to the order within an index.">H5Literate1()</a>.</p>
|
|
<p>If <code class="param">obj_id</code> is a group identifier, that group serves as the root of a recursive iteration. If <code class="param">obj_id</code> is a file identifier, that file's root group serves as the root of the recursive iteration. If <code class="param">obj_id</code> is an attribute identifier, then the object where the attribute is attached will be iterated. If <code class="param">obj_id</code> is any other type of object, such as a dataset or named datatype, there is no iteration.</p>
|
|
<p>Two parameters are used to establish the iteration: <code class="param">idx_type</code> and <code class="param">order</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the index to be used. If the links in a group have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly.</p>
|
|
<p>Note that the index type passed in <code class="param">idx_type</code> is a <em>best effort</em> setting. If the application passes in a value indicating iteration in creation order and a group is encountered that was not tracked in creation order, that group will be iterated over in alphanumeric order by name, or <em>name order</em>. (<em>Name order</em> is the native order used by the HDF5 library and is always available.)</p>
|
|
<p><code class="param">order</code> specifies the order in which objects are to be inspected along the index specified in <code class="param">idx_type</code>.</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be retrieved by the <code class="param">op</code> callback function. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file: </p><table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p><a class="el" href="group___t_r_a_v.html#gac0558936502924d9e898d8b6e041ed69">H5Lvisit()</a> and <a class="el" href="#ga5ce86255fcc34ceaf84a62551cd24233">H5Ovisit()</a> are companion functions: one for examining and operating on links; the other for examining and operating on the objects that those links point to. Both functions ensure that by the time the function completes successfully, every link or object below the specified point in the file has been presented to the application for whatever processing the application requires. These functions assume that the membership of the group being iterated over remains unchanged through the iteration; if any of the links in the group change during the iteration, the resulting behavior is undefined.</p>
|
|
<dl class="section attention"><dt>Attention</dt><dd><b>Leaving callback functions:</b><br />
|
|
The callback function must return normally, even in the case of error. Returning with H5_ITER_ERROR, instead of leaving by means of exceptions, exit() function, etc... will allow the HDF5 library to manage its resources and maintain a consistent state. See <a class="el" href="_r_m.html#cpp_c_api_note">C++ Developers using HDF5 C-API functions</a> warning for detail.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6d03115ae0e5e5b516bbf35bb492266a" name="ga6d03115ae0e5e5b516bbf35bb492266a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6d03115ae0e5e5b516bbf35bb492266a">◆ </a></span>H5Ovisit3()</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> H5Ovisit3 </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="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a564cec62aef0389091ad21d235aa321c">H5O_iterate2_t</a></td> <td class="paramname"><span class="paramname"><em>op</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>op_data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Recursively visits all objects accessible from a specified object. </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>Location identifier of object. 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">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op</td><td>Callback function passing data regarding the object to the calling application </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op_data</td><td>User-defined pointer to data required by the application for its processing of the object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to be retrieved to the callback <code class="param">op</code> </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.</dd>
|
|
<dd>
|
|
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.</dd></dl>
|
|
<p><a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a> is a recursive iteration function to visit the object <code class="param">obj_id</code> and, if <code class="param">obj_id</code> is a group, all objects in and below it in an HDF5 file, thus providing a mechanism for an application to perform a common set of operations across all of those objects or a dynamically selected subset. For non-recursive iteration across the members of a group, see <a class="el" href="group___t_r_a_v.html#gad7ca4206f06b5ada85b6ec5867ec6c73" title="Iterates over links in a group, with user callback routine, according to the order within an index.">H5Literate2()</a>.</p>
|
|
<p>If <code class="param">obj_id</code> is a group identifier, that group serves as the root of a recursive iteration. If <code class="param">obj_id</code> is a file identifier, that file's root group serves as the root of the recursive iteration. If <code class="param">obj_id</code> is an attribute identifier, then the object where the attribute is attached will be iterated. If <code class="param">obj_id</code> is any other type of object, such as a dataset or named datatype, there is no iteration.</p>
|
|
<p>Two parameters are used to establish the iteration: <code class="param">idx_type</code> and <code class="param">order</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the index to be used. If the links in a group have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly.</p>
|
|
<p>Note that the index type passed in <code class="param">idx_type</code> is a <em>best effort</em> setting. If the application passes in a value indicating iteration in creation order and a group is encountered that was not tracked in creation order, that group will be iterated over in alphanumeric order by name, or <em>name order</em>. (<em>Name order</em> is the native order used by the HDF5 library and is always available.)</p>
|
|
<p><code class="param">order</code> specifies the order in which objects are to be inspected along the index specified in <code class="param">idx_type</code>.</p>
|
|
<p>The <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a> <code class="param">op_data</code> parameter is a user-defined pointer to the data required to process objects in the course of the iteration. This pointer is passed back to each step of the iteration in the callback function's <code class="param">op_data</code> parameter.</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be retrieved by the <code class="param">op</code> callback function. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file: </p><table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p><a class="el" href="group___t_r_a_v.html#gae1c6f963892a5f4e8922a66fbe338f66" title="Recursively visits all links starting from a specified group.">H5Lvisit2()</a> and <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a> are companion functions: one for examining and operating on links; the other for examining and operating on the objects that those links point to. Both functions ensure that by the time the function completes successfully, every link or object below the specified point in the file has been presented to the application for whatever processing the application requires. These functions assume that the membership of the group being iterated over remains unchanged through the iteration; if any of the links in the group change during the iteration, the resulting behavior is undefined.</p>
|
|
<dl class="section attention"><dt>Attention</dt><dd><b>Leaving callback functions:</b><br />
|
|
The callback function must return normally, even in the case of error. Returning with H5_ITER_ERROR, instead of leaving by means of exceptions, exit() function, etc... will allow the HDF5 library to manage its resources and maintain a consistent state. See <a class="el" href="_r_m.html#cpp_c_api_note">C++ Developers using HDF5 C-API functions</a> warning for detail.</dd></dl>
|
|
<dl class="section user"><dt>Example</dt><dd>An example snippet from test/links.c: <div class="fragment"><div class="line"> </div>
|
|
<div class="line"> <span class="comment">/* Visit all the objects reachable from the root group (with file ID) */</span></div>
|
|
<div class="line"> udata.idx = 0;</div>
|
|
<div class="line"> udata.info = new_format ? ovisit0_new : ovisit0_old;</div>
|
|
<div class="line"> <span class="keywordflow">if</span> (<a class="code hl_function" href="#ga6d03115ae0e5e5b516bbf35bb492266a">H5Ovisit3</a>(fid, <a class="code hl_enumvalue" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3a644e6701706be4d37660864336c7bd3e">H5_INDEX_NAME</a>, <a class="code hl_enumvalue" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a80c3e083c0a77063b1a66553decfcb08">H5_ITER_INC</a>, visit_obj_cb, &udata, <a class="code hl_define" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a>) < 0)</div>
|
|
<div class="line"> FAIL_STACK_ERROR;</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaffacf3bd66f4fe074099eae1c80914f2" name="gaffacf3bd66f4fe074099eae1c80914f2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaffacf3bd66f4fe074099eae1c80914f2">◆ </a></span>H5Ovisit_by_name1()</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> H5Ovisit_by_name1 </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>obj_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a></td> <td class="paramname"><span class="paramname"><em>op</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>op_data</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Recursively visits all objects starting from a specified 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>Location identifier of object. 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">obj_name</td><td>Name of the object, generally relative to <code class="param">loc_id</code>, that will serve as root of the iteration </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op</td><td>Callback function passing data regarding the object to the calling application </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op_data</td><td>User-defined pointer to data required by the application for its processing of the object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.</dd>
|
|
<dd>
|
|
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000067">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a> or the macro <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a>.</dd></dl>
|
|
<p><a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a> is a recursive iteration function to visit the object specified by the <code class="param">loc_id</code> / <code class="param">obj_name</code> parameter pair and, if that object is a group, all objects in and below it in an HDF5 file, thus providing a mechanism for an application to perform a common set of operations across all of those objects or a dynamically selected subset. For non-recursive iteration across the members of a group, see <a class="el" href="group___t_r_a_v.html#ga1e7c0a8cf17699563c02e128f27042f1" title="Iterates over links in a group, with user callback routine, according to the order within an index.">H5Literate1()</a>.</p>
|
|
<p>The object serving as the root of the iteration is specified by the <code class="param">loc_id</code> / <code class="param">obj_name</code> parameter pair. <code class="param">loc_id</code> specifies a file or an object in a file; if <code class="param">loc_id</code> is an attribute identifier, the object where the attribute is attached will be used. <code class="param">obj_name</code> specifies either an object in the file (with an absolute name based on the file's root group) or an object name relative to <code class="param">loc_id</code>. If <code class="param">loc_id</code> fully specifies the object that is to serve as the root of the iteration, <code class="param">obj_name</code> should be '<code></code>.' (a dot). (Note that when <code class="param">loc_id</code> fully specifies the object that is to serve as the root of the iteration, the user may wish to consider using <a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a> instead of <a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a>.)</p>
|
|
<p>Two parameters are used to establish the iteration: <code class="param">idx_type</code> and <code class="param">order</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the index to be used. If the links in a group have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly.</p>
|
|
<p>Note that the index type passed in <code class="param">idx_type</code> is a <em>best effort</em> setting. If the application passes in a value indicating iteration in creation order and a group is encountered that was not tracked in creation order, that group will be iterated over in alphanumeric order by name, or <em>name order</em>. (<em>Name order</em> is the native order used by the HDF5 library and is always available.)</p>
|
|
<p><code class="param">order</code> specifies the order in which objects are to be inspected along the index specified in <code class="param">idx_type</code>.</p>
|
|
<p>The <code class="param">op</code> callback function and the effect of the callback function's return value on the application are described in <a class="el" href="#ga6efdb2a0a9fe9fe46695cc0f7bd993e7" title="Recursively visits all objects accessible from a specified object.">H5Ovisit1()</a>.</p>
|
|
<p>The <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code> is defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> and described in the <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> function entry.</p>
|
|
<p>The <a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a> <code class="param">op_data</code> parameter is a user-defined pointer to the data required to process objects in the course of the iteration. This pointer is passed back to each step of the iteration in the callback function's <code class="param">op_data</code> parameter.</p>
|
|
<p><code class="param">lapl_id</code> is a link access property list. In the general case, when default link access properties are acceptable, this can be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>. An example of a situation that requires a non-default link access property list is when the link is an external link; an external link may require that a link prefix be set in a link access property list (see <a class="el" href="group___l_a_p_l.html#gafa5eced13ba3a00cdd65669626dc7294" title="Sets prefix to be applied to external link paths.">H5Pset_elink_prefix()</a>).</p>
|
|
<p><a class="el" href="group___t_r_a_v.html#ga1f1ba1bb4d44f2c111990024809417ac" title="Recursively visits all links starting from a specified group.">H5Lvisit_by_name1()</a> and <a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a> are companion functions: one for examining and operating on links; the other for examining and operating on the objects that those links point to. Both functions ensure that by the time the function completes successfully, every link or object below the specified point in the file has been presented to the application for whatever processing the application requires.</p>
|
|
<dl class="section attention"><dt>Attention</dt><dd><b>Leaving callback functions:</b><br />
|
|
The callback function must return normally, even in the case of error. Returning with H5_ITER_ERROR, instead of leaving by means of exceptions, exit() function, etc... will allow the HDF5 library to manage its resources and maintain a consistent state. See <a class="el" href="_r_m.html#cpp_c_api_note">C++ Developers using HDF5 C-API functions</a> warning for detail.</dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>1.10.5 The macro <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a> was removed and the function <a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a> was copied to <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a>. </dd>
|
|
<dd>
|
|
1.10.3 The <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name()</a> function was renamed to <a class="el" href="#gaffacf3bd66f4fe074099eae1c80914f2" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name1()</a>, and the macro <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a> was created. </dd>
|
|
<dd>
|
|
1.8.11 Fortran subroutine introduced in this release.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.8.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga9c155caf5499405fe403e1eb27b5beb6" name="ga9c155caf5499405fe403e1eb27b5beb6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga9c155caf5499405fe403e1eb27b5beb6">◆ </a></span>H5Ovisit_by_name2()</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> H5Ovisit_by_name2 </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>obj_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a1e341f3acea3993c4e19b2940a83fd86">H5O_iterate1_t</a></td> <td class="paramname"><span class="paramname"><em>op</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>op_data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Recursively visits all objects starting from a specified 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>Location identifier of object. 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">obj_name</td><td>Name of the object, generally relative to <code class="param">loc_id</code>, that will serve as root of the iteration </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op</td><td>Callback function passing data regarding the object to the calling application </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op_data</td><td>User-defined pointer to data required by the application for its processing of the object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to be retrieved to the callback function <code class="param">op</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.</dd>
|
|
<dd>
|
|
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.</dd></dl>
|
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000069">Deprecated</a></b></dt><dd>As of HDF5-1.12 this function has been deprecated in favor of the function <a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a> or the macro <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a>.</dd></dl>
|
|
<p><a class="el" href="#ga9c155caf5499405fe403e1eb27b5beb6" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name2()</a> is a recursive iteration function to visit the object specified by the <code class="param">loc_id</code> / <code class="param">obj_name</code> parameter pair and, if that object is a group, all objects in and below it in an HDF5 file, thus providing a mechanism for an application to perform a common set of operations across all of those objects or a dynamically selected subset. For non-recursive iteration across the members of a group, see <a class="el" href="group___t_r_a_v.html#ga55406698106930db68242987c11ba051">H5Literate</a>.</p>
|
|
<p>The object serving as the root of the iteration is specified by the <code class="param">loc_id</code> / <code class="param">obj_name</code> parameter pair. <code class="param">loc_id</code> specifies a file or an object in a file; if <code class="param">loc_id</code> is an attribute identifier, the object where the attribute is attached will be used. <code class="param">obj_name</code> specifies either an object in the file (with an absolute name based in the file's root group) or an object name relative to <code class="param">loc_id</code>. If <code class="param">loc_id</code> fully specifies the object that is to serve as the root of the iteration, <code class="param">obj_name</code> should be '<code></code>.' (a dot). (Note that when <code class="param">loc_id</code> fully specifies the object that is to serve as the root of the iteration, the user may wish to consider using <a class="el" href="#gaa4ab542f581f4fc9a4eaa95debb29c9e" title="Recursively visits all objects accessible from a specified object.">H5Ovisit2()</a> instead of <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a>.)</p>
|
|
<p>Two parameters are used to establish the iteration: <code class="param">idx_type</code> and <code class="param">order</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the index to be used. If the links in a group have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly.</p>
|
|
<p>Note that the index type passed in <code class="param">idx_type</code> is a <em>best effort</em> setting. If the application passes in a value indicating iteration in creation order and a group is encountered that was not tracked in creation order, that group will be iterated over in alphanumeric order by name, or <em>name order</em>. (<em>Name order</em> is the native order used by the HDF5 library and is always available.)</p>
|
|
<p><code class="param">order</code> specifies the order in which objects are to be inspected along the index specified in <code class="param">idx_type</code>.</p>
|
|
<p>The <code class="param">op</code> callback function and the effect of the callback function's return value on the application are described in <a class="el" href="#gaa4ab542f581f4fc9a4eaa95debb29c9e" title="Recursively visits all objects accessible from a specified object.">H5Ovisit2()</a>.</p>
|
|
<p>The <a class="el" href="struct_h5_o__info1__t.html">H5O_info1_t</a> <code>struct</code> is defined in <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> and described in the <a class="el" href="#gaf3751684a6706e3ba49b863406011f80" title="Retrieves the metadata for an object specified by an identifier.">H5Oget_info1()</a> function entry.</p>
|
|
<p>The <a class="el" href="#ga9c155caf5499405fe403e1eb27b5beb6" title="Recursively visits all objects starting from a specified object.">H5Ovisit_by_name2()</a> <code class="param">op_data</code> parameter is a user-defined pointer to the data required to process objects in the course of the iteration. This pointer is passed back to each step of the iteration in the callback function's <code class="param">op_data</code> parameter.</p>
|
|
<p><code class="param">lapl_id</code> is a link access property list. In the general case, when default link access properties are acceptable, this can be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>. An example of a situation that requires a non-default link access property list is when the link is an external link; an external link may require that a link prefix be set in a link access property list (see <a class="el" href="group___l_a_p_l.html#gafa5eced13ba3a00cdd65669626dc7294" title="Sets prefix to be applied to external link paths.">H5Pset_elink_prefix()</a>).</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be retrieved by the <code class="param">op</code> callback function. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file: </p><table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p><a class="el" href="group___t_r_a_v.html#ga138405315e233673741893e4e250f055">H5Lvisit_by_name</a> and <a class="el" href="#gab02a69e88b11404e7fd61f55344b186c">H5Ovisit_by_name</a> are companion functions: one for examining and operating on links; the other for examining and operating on the objects that those links point to. Both functions ensure that by the time the function completes successfully, every link or object below the specified point in the file has been presented to the application for whatever processing the application requires.</p>
|
|
<dl class="section attention"><dt>Attention</dt><dd><b>Leaving callback functions:</b><br />
|
|
The callback function must return normally, even in the case of error. Returning with H5_ITER_ERROR, instead of leaving by means of exceptions, exit() function, etc... will allow the HDF5 library to manage its resources and maintain a consistent state. See <a class="el" href="_r_m.html#cpp_c_api_note">C++ Developers using HDF5 C-API functions</a> warning for detail.</dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.10.3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga34815400b01df59c4dac19436124885a" name="ga34815400b01df59c4dac19436124885a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga34815400b01df59c4dac19436124885a">◆ </a></span>H5Ovisit_by_name3()</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> H5Ovisit_by_name3 </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>obj_name</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3">H5_index_t</a></td> <td class="paramname"><span class="paramname"><em>idx_type</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9">H5_iter_order_t</a></td> <td class="paramname"><span class="paramname"><em>order</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="_h5_opublic_8h.html#a564cec62aef0389091ad21d235aa321c">H5O_iterate2_t</a></td> <td class="paramname"><span class="paramname"><em>op</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void *</td> <td class="paramname"><span class="paramname"><em>op_data</em></span>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>fields</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>lapl_id</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Recursively visits all objects accessible from a specified 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>Location identifier of object. 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">obj_name</td><td>Name of the object, generally relative to <code class="param">loc_id</code>, that will serve as root of the iteration </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">idx_type</td><td>Index type </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">order</td><td>Iteration order </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op</td><td>Callback function passing data regarding the object to the calling application </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">op_data</td><td>User-defined pointer to data required by the application for its processing of the object </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">fields</td><td>Flags specifying the fields to be retrieved to the callback function <code class="param">op</code> </td></tr>
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">lapl_id</td><td>Link access property list identifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.</dd>
|
|
<dd>
|
|
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.</dd></dl>
|
|
<p><a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a> is a recursive iteration function to visit the object specified by the <code class="param">loc_id</code> / <code class="param">obj_name</code> parameter pair and, if that object is a group, all objects in and below it in an HDF5 file, thus providing a mechanism for an application to perform a common set of operations across all of those objects or a dynamically selected subset. For non-recursive iteration across the members of a group, see <a class="el" href="group___t_r_a_v.html#gad7ca4206f06b5ada85b6ec5867ec6c73" title="Iterates over links in a group, with user callback routine, according to the order within an index.">H5Literate2()</a>.</p>
|
|
<p>The object serving as the root of the iteration is specified by the <code class="param">loc_id</code> / <code class="param">obj_name</code> parameter pair. <code class="param">loc_id</code> specifies a file or an object in a file; if <code class="param">loc_id</code> is an attribute identifier, the object where the attribute is attached will be used. <code class="param">obj_name</code> specifies either an object in the file (with an absolute name based on the file's root group) or an object name relative to <code class="param">loc_id</code>. If <code class="param">loc_id</code> fully specifies the object that is to serve as the root of the iteration, <code class="param">obj_name</code> should be '<code></code>.' (a dot). (Note that when <code class="param">loc_id</code> fully specifies the object that is to serve as the root of the iteration, the user may wish to consider using <a class="el" href="#ga6d03115ae0e5e5b516bbf35bb492266a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit3()</a> instead of <a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a>.)</p>
|
|
<p>Two parameters are used to establish the iteration: <code class="param">idx_type</code> and <code class="param">order</code>.</p>
|
|
<p><code class="param">idx_type</code> specifies the index to be used. If the links in a group have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly.</p>
|
|
<p>Note that the index type passed in <code class="param">idx_type</code> is a <em>best effort</em> setting. If the application passes in a value indicating iteration in creation order and a group is encountered that was not tracked in creation order, that group will be iterated over in alphanumeric order by name, or <em>name order</em>. (<em>Name order</em> is the native order used by the HDF5 library and is always available.)</p>
|
|
<p><code class="param">order</code> specifies the order in which objects are to be inspected along the index specified in <code class="param">idx_type</code>.</p>
|
|
<p>The <a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a> <code class="param">op_data</code> parameter is a user-defined pointer to the data required to process objects in the course of the iteration. This pointer is passed back to each step of the iteration in the callback function's <code class="param">op_data</code> parameter.</p>
|
|
<p><code class="param">lapl_id</code> is a link access property list. In the general case, when default link access properties are acceptable, this can be passed in as <a class="el" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>. An example of a situation that requires a non-default link access property list is when the link is an external link; an external link may require that a link prefix be set in a link access property list (see <a class="el" href="group___l_a_p_l.html#gafa5eced13ba3a00cdd65669626dc7294" title="Sets prefix to be applied to external link paths.">H5Pset_elink_prefix()</a>).</p>
|
|
<p>The <code class="param">fields</code> parameter contains flags to determine which fields will be retrieved by the <code class="param">op</code> callback function. These flags are defined in the <a class="el" href="_h5_opublic_8h.html">H5Opublic.h</a> file: </p><table class="doxtable">
|
|
<tr>
|
|
<th>Flag</th><th>Purpose</th></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a></td><td>Fill in the fileno, addr, type, and rc fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a></td><td>Fill in the atime, mtime, ctime, and btime fields</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> </td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a></td><td>Fill in the num_attrs field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td><td>Fill in the meta_size field</td></tr>
|
|
<tr>
|
|
<td><a class="el" href="_h5_opublic_8h.html#a7a2088668e3e0e87ea625fe1d6243a08">H5O_INFO_ALL</a></td><td><a class="el" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a> | <a class="el" href="_h5_opublic_8h.html#a62585d2e7217b5ad3a896bb6035b1bdb">H5O_INFO_TIME</a> | <a class="el" href="_h5_opublic_8h.html#a06bd4abefb70371afef7446ecfb4a72a">H5O_INFO_NUM_ATTRS</a> | <a class="el" href="_h5_opublic_8h.html#ae45a752a2eb50abff7cee4f66361c0c2">H5O_INFO_HDR</a> | <a class="el" href="_h5_opublic_8h.html#af69edf0fc8c8bc8afc139a32f0a5e53a">H5O_INFO_META_SIZE</a></td></tr>
|
|
</table>
|
|
<p><a class="el" href="group___t_r_a_v.html#gafee93792c7e27a7e78b1ec221876b173" title="Recursively visits all links starting from a specified group.">H5Lvisit_by_name2()</a> and <a class="el" href="#ga34815400b01df59c4dac19436124885a" title="Recursively visits all objects accessible from a specified object.">H5Ovisit_by_name3()</a> are companion functions: one for examining and operating on links; the other for examining and operating on the objects that those links point to. Both functions ensure that by the time the function completes successfully, every link or object below the specified point in the file has been presented to the application for whatever processing the application requires.</p>
|
|
<dl class="section attention"><dt>Attention</dt><dd><b>Leaving callback functions:</b><br />
|
|
The callback function must return normally, even in the case of error. Returning with H5_ITER_ERROR, instead of leaving by means of exceptions, exit() function, etc... will allow the HDF5 library to manage its resources and maintain a consistent state. See <a class="el" href="_r_m.html#cpp_c_api_note">C++ Developers using HDF5 C-API functions</a> warning for detail.</dd></dl>
|
|
<dl class="section user"><dt>Example</dt><dd>An example snippet from test/links.c: <div class="fragment"><div class="line"> </div>
|
|
<div class="line"> <span class="comment">/* Visit all the objects reachable from the root group (with file ID) */</span></div>
|
|
<div class="line"> udata.idx = 0;</div>
|
|
<div class="line"> udata.info = new_format ? ovisit0_new : ovisit0_old;</div>
|
|
<div class="line"> <span class="keywordflow">if</span> (<a class="code hl_function" href="#ga34815400b01df59c4dac19436124885a">H5Ovisit_by_name3</a>(fid, <span class="stringliteral">"/"</span>, <a class="code hl_enumvalue" href="_h5public_8h.html#a8203c78e10ab2d89d8bce688a31afad3a644e6701706be4d37660864336c7bd3e">H5_INDEX_NAME</a>, <a class="code hl_enumvalue" href="_h5public_8h.html#a6a6ddd1504d1ed61939d46d91d9441b9a80c3e083c0a77063b1a66553decfcb08">H5_ITER_INC</a>, visit_obj_cb, &udata, <a class="code hl_define" href="_h5_opublic_8h.html#addd3f3f27f124a16a52c390b8431a878">H5O_INFO_BASIC</a>,</div>
|
|
<div class="line"> <a class="code hl_define" href="_h5_ppublic_8h.html#afa85e97bfbf9bf1c58e39263846c568f">H5P_DEFAULT</a>) < 0)</div>
|
|
<div class="line"> FAIL_STACK_ERROR;</div>
|
|
<div class="line"> </div>
|
|
</div><!-- fragment --></dd></dl>
|
|
<dl class="section since"><dt>Since</dt><dd>1.12.0 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- 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.13.2 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|