mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-12-15 08:39:54 +08:00
128 lines
10 KiB
HTML
128 lines
10 KiB
HTML
<!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++: ncChar.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++
|
|
 <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 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 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('ncChar_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">ncChar.cpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include "ncChar.h"</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "netcdf.h"</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="keyword">using namespace </span><a class="code" href="namespacenetCDF.html">netCDF</a>;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// create an instance of NcChar called netCDF::ncChar</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="keyword">namespace </span><a class="code" href="namespacenetCDF.html">netCDF</a> {</div><div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="namespacenetCDF.html#adaf2575688998aa9c5ffa8f9940421e0"> 7</a></span>  <a class="code" href="classnetCDF_1_1NcChar.html">NcChar</a> <a class="code" href="namespacenetCDF.html#adaf2575688998aa9c5ffa8f9940421e0">ncChar</a>;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> }</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// constructor</span></div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcChar.html#a035c21fc8196744ac0e34dff88128fdf"> 11</a></span> <a class="code" href="classnetCDF_1_1NcChar.html#a035c21fc8196744ac0e34dff88128fdf">NcChar::NcChar</a>() : <a class="code" href="classnetCDF_1_1NcType.html">NcType</a>(NC_CHAR){</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> }</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> NcChar::~NcChar() {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> }</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// equivalence operator</span></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcChar.html#a24efca71b4aa35facbc3013a1498b978"> 19</a></span> <span class="keywordtype">bool</span> <a class="code" href="classnetCDF_1_1NcChar.html#a24efca71b4aa35facbc3013a1498b978">NcChar::operator==</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcChar.html">NcChar</a> & rhs) {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="comment">// simply check the netCDF id.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">return</span> <a class="code" href="classnetCDF_1_1NcType.html#a5f7b930e614ae371618cf9759fc0426b">myId</a> == rhs.<a class="code" href="classnetCDF_1_1NcType.html#a5f7b930e614ae371618cf9759fc0426b">myId</a>;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> } </div><div class="ttc" id="classnetCDF_1_1NcChar_html_a24efca71b4aa35facbc3013a1498b978"><div class="ttname"><a href="classnetCDF_1_1NcChar.html#a24efca71b4aa35facbc3013a1498b978">netCDF::NcChar::operator==</a></div><div class="ttdeci">bool operator==(const NcChar &rhs)</div><div class="ttdoc">equivalence operator </div><div class="ttdef"><b>Definition:</b> <a href="ncChar_8cpp_source.html#l00019">ncChar.cpp:19</a></div></div>
|
|
<div class="ttc" id="classnetCDF_1_1NcChar_html"><div class="ttname"><a href="classnetCDF_1_1NcChar.html">netCDF::NcChar</a></div><div class="ttdoc">Class represents a netCDF atomic Char type. </div><div class="ttdef"><b>Definition:</b> <a href="ncChar_8h_source.html#l00010">ncChar.h:10</a></div></div>
|
|
<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="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="classnetCDF_1_1NcChar_html_a035c21fc8196744ac0e34dff88128fdf"><div class="ttname"><a href="classnetCDF_1_1NcChar.html#a035c21fc8196744ac0e34dff88128fdf">netCDF::NcChar::NcChar</a></div><div class="ttdeci">NcChar()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="ncChar_8cpp_source.html#l00011">ncChar.cpp:11</a></div></div>
|
|
<div class="ttc" id="namespacenetCDF_html_adaf2575688998aa9c5ffa8f9940421e0"><div class="ttname"><a href="namespacenetCDF.html#adaf2575688998aa9c5ffa8f9940421e0">netCDF::ncChar</a></div><div class="ttdeci">NcChar ncChar</div><div class="ttdoc">A global instance of the NcChar class within the netCDF namespace. </div><div class="ttdef"><b>Definition:</b> <a href="ncChar_8cpp_source.html#l00007">ncChar.cpp:7</a></div></div>
|
|
<div class="ttc" id="classnetCDF_1_1NcType_html_a5f7b930e614ae371618cf9759fc0426b"><div class="ttname"><a href="classnetCDF_1_1NcType.html#a5f7b930e614ae371618cf9759fc0426b">netCDF::NcType::myId</a></div><div class="ttdeci">nc_type myId</div><div class="ttdoc">the type Id </div><div class="ttdef"><b>Definition:</b> <a href="ncType_8h_source.html#l00149">ncType.h:149</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>
|