netcdf-cxx4/ncAtt_8cpp_source.html

140 lines
60 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>NetCDF-C++: ncAtt.cpp Source File</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="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</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">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</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 style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="netcdf-50x50.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">NetCDF-C++
&#160;<span id="projectnumber">4.3.1-developer</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>NetCDF&#160;Documentation</span></a></li>
<li><a href="pages.html"><span>Navigation</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="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.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>Source&#160;Files</span></a></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">
$(document).ready(function(){initNavTree('ncAtt_8cpp_source.html','');});
</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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">ncAtt.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#include &quot;ncAtt.h&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &quot;ncGroup.h&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor">#include &quot;ncCheck.h&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacenetCDF.html">netCDF</a>;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160; </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// destructor (defined even though it is virtual)</span></div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#aad9c4cf84c0c41c0b14ead452fc55958"> 11</a></span>&#160;NcAtt::~NcAtt() {}</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">// assignment operator</span></div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a396d91520d48492ee208079a1f477233"> 14</a></span>&#160;<a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a>&amp; NcAtt::operator=(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a>&amp; rhs)</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;{</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; nullObject = rhs.nullObject;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; myName = rhs.myName;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; groupId = rhs.groupId;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; varId =rhs.varId;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;}</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">// Constructor generates a null object.</span></div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a48880b500fc3e9dadf5f692e6af8766c"> 24</a></span>&#160;NcAtt::NcAtt() : </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; nullObject(true) </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;{}</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment">// Constructor for non-null instances.</span></div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a281354a3282a91591fb2a5295ef74373"> 29</a></span>&#160;<a class="code" href="classnetCDF_1_1NcAtt.html#a48880b500fc3e9dadf5f692e6af8766c">NcAtt::NcAtt</a>(<span class="keywordtype">bool</span> nullObject): </div><div class="line
<div class="ttc" id="classnetCDF_1_1NcType_html"><div class="ttname"><a href="classnetCDF_1_1NcType.html">netCDF::NcType</a></div><div class="ttdoc">Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes. </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00014">ncType.h:14</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html_ad265e693eb3f309969e5ce59d0cb23a7"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">netCDF::NcAtt::getValues</a></div><div class="ttdeci">void getValues(char *dataValues) const </div><div class="ttdoc">This is an overloaded member function, provided for convenience. It differs from the above function o...</div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00110">ncAtt.cpp:110</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html_a64e248f99b12a0e5929733ecc56cae17"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#a64e248f99b12a0e5929733ecc56cae17">netCDF::NcAtt::getAttLength</a></div><div class="ttdeci">size_t getAttLength() const </div><div class="ttdoc">Gets attribute length. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00087">ncAtt.cpp:87</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcType_html_a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47"><div class="ttname"><a href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">netCDF::NcType::nc_OPAQUE</a></div><div class="ttdoc">&quot;NcOpaque type&quot; </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00040">ncType.h:40</a></div></div>
<div class="ttc" id="namespacenetCDF_html"><div class="ttname"><a href="namespacenetCDF.html">netCDF</a></div><div class="ttdoc">C++ API for netCDF4. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8h_source.html#l00009">ncAtt.h:9</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html_a6f64b3208cd1748555acbb6bb5d38786"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">netCDF::NcAtt::getType</a></div><div class="ttdeci">NcType getType() const </div><div class="ttdoc">Returns the attribute type. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00064">ncAtt.cpp:64</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcType_html_a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870"><div class="ttname"><a href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">netCDF::NcType::nc_COMPOUND</a></div><div class="ttdoc">&quot;NcCompound type&quot; </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00042">ncType.h:42</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html_a99b5ae6f999a9bb3c165f7800cdea777"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#a99b5ae6f999a9bb3c165f7800cdea777">netCDF::NcAtt::getParentGroup</a></div><div class="ttdeci">NcGroup getParentGroup() const </div><div class="ttdoc">Gets parent group. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00058">ncAtt.cpp:58</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html_afe11af9ed6ae1f65d6220124b3ac8aea"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#afe11af9ed6ae1f65d6220124b3ac8aea">netCDF::NcAtt::operator==</a></div><div class="ttdeci">bool operator==(const NcAtt &amp;rhs) const </div><div class="ttdoc">equivalence operator </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00043">ncAtt.cpp:43</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html_ab37beafc5050a68b64866c6887eafcd6"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#ab37beafc5050a68b64866c6887eafcd6">netCDF::NcAtt::operator!=</a></div><div class="ttdeci">bool operator!=(const NcAtt &amp;rhs) const </div><div class="ttdoc">!= operator </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00052">ncAtt.cpp:52</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcType_html_a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973"><div class="ttname"><a href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">netCDF::NcType::nc_VLEN</a></div><div class="ttdoc">&quot;NcVlen type&quot; </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00039">ncType.h:39</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcGroup_html"><div class="ttname"><a href="classnetCDF_1_1NcGroup.html">netCDF::NcGroup</a></div><div class="ttdoc">Class represents a netCDF group. </div><div class="ttdef"><b>Definition:</b> <a href="ncGroup_8h_source.html#l00027">ncGroup.h:27</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcType_html_a8b3e86d98c97b11782734a60b724ae7f"><div class="ttname"><a href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">netCDF::NcType::ncType</a></div><div class="ttdeci">ncType</div><div class="ttdoc">List of netCDF types that can be represented. </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00025">ncType.h:25</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcGroup_html_a8f7dc5bc7130a1c35a0b93136383e4b3a1adb657d5dc3f43d10e8a80a12c6f8eb"><div class="ttname"><a href="classnetCDF_1_1NcGroup.html#a8f7dc5bc7130a1c35a0b93136383e4b3a1adb657d5dc3f43d10e8a80a12c6f8eb">netCDF::NcGroup::ParentsAndCurrent</a></div><div class="ttdoc">Select from contents of current and parents groups. </div><div class="ttdef"><b>Definition:</b> <a href="ncGroup_8h_source.html#l00053">ncGroup.h:53</a></div></div>
<div class="ttc" id="namespacenetCDF_html_ac90290d966f6e01dbf22fca241162e18"><div class="ttname"><a href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">netCDF::ncCheck</a></div><div class="ttdeci">void ncCheck(int retCode, const char *file, int line)</div><div class="ttdoc">Function checks error code and if necessary throws an exception. </div><div class="ttdef"><b>Definition:</b> <a href="ncCheck_8cpp_source.html#l00011">ncCheck.cpp:11</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcType_html_a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6"><div class="ttname"><a href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">netCDF::NcType::nc_ENUM</a></div><div class="ttdoc">&quot;NcEnum type&quot; </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00041">ncType.h:41</a></div></div>
<div class="ttc" id="classnetCDF_1_1NcAtt_html"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html">netCDF::NcAtt</a></div><div class="ttdoc">Abstract base class represents inherited by ncVarAtt and ncGroupAtt. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8h_source.html#l00013">ncAtt.h:13</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<hr size="2"/>
<address style="text-align: center;">
<a href="http://www.unidata.ucar.edu/software/netcdf/">Return to the Main Unidata NetCDF page.</a><br>
<img src="http://www.unidata.ucar.edu/images/logos/uniLogo.png">
<address style="text-align: right;"><small>
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is
a <a href="http://www.unidata.ucar.edu/">Unidata</a> library.</small></address>
</body>
</html>