mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-12-15 08:39:54 +08:00
140 lines
60 KiB
HTML
140 lines
60 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++: 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++
|
|
 <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('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> <span class="preprocessor">#include "ncAtt.h"</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "ncGroup.h"</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "ncCheck.h"</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <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> <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>  </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">// 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> NcAtt::~NcAtt() {}</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> <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> <a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a>& NcAtt::operator=(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a>& rhs)</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>  nullObject = rhs.nullObject;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  myName = rhs.myName;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  groupId = rhs.groupId;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  varId =rhs.varId;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <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> NcAtt::NcAtt() : </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  nullObject(true) </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {}</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <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> <a class="code" href="classnetCDF_1_1NcAtt.html#a48880b500fc3e9dadf5f692e6af8766c">NcAtt::NcAtt</a>(<span class="keywordtype">bool</span> nullObject): </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  nullObject(nullObject)</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {}</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// The copy constructor.</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#ab815672e8c248669e8561d6b604aa728"> 34</a></span> <a class="code" href="classnetCDF_1_1NcAtt.html#a48880b500fc3e9dadf5f692e6af8766c">NcAtt::NcAtt</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a>& rhs) :</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  nullObject(rhs.nullObject),</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  myName(rhs.myName),</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  groupId(rhs.groupId),</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  varId(rhs.varId)</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {}</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// equivalence operator</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#afe11af9ed6ae1f65d6220124b3ac8aea"> 43</a></span> <span class="keywordtype">bool</span> <a class="code" href="classnetCDF_1_1NcAtt.html#afe11af9ed6ae1f65d6220124b3ac8aea">NcAtt::operator==</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a> & rhs)<span class="keyword"> const</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword"></span>{</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">if</span>(nullObject) </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">return</span> nullObject == rhs.nullObject;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> myName == rhs.myName && groupId == rhs.groupId && varId == rhs.varId;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> } </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// != operator</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#ab37beafc5050a68b64866c6887eafcd6"> 52</a></span> <span class="keywordtype">bool</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ab37beafc5050a68b64866c6887eafcd6">NcAtt::operator!=</a>(<span class="keyword">const</span> <a class="code" href="classnetCDF_1_1NcAtt.html">NcAtt</a> & rhs)<span class="keyword"> const</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword"></span>{</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == rhs);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> } </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// Gets parent group.</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a99b5ae6f999a9bb3c165f7800cdea777"> 58</a></span> <a class="code" href="classnetCDF_1_1NcGroup.html">netCDF::NcGroup</a> <a class="code" href="classnetCDF_1_1NcAtt.html#a99b5ae6f999a9bb3c165f7800cdea777">NcAtt::getParentGroup</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> <a class="code" href="classnetCDF_1_1NcGroup.html">netCDF::NcGroup</a>(groupId);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// Returns the attribute type.</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786"> 64</a></span> <a class="code" href="classnetCDF_1_1NcType.html">NcType</a> <a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">NcAtt::getType</a>()<span class="keyword"> const</span>{</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// get the identifier for the netCDF type of this attribute.</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  nc_type xtypep;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_inq_atttype(groupId,varId,myName.c_str(),&xtypep),__FILE__,__LINE__);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span>(xtypep <= 12)</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// This is an atomic type</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> <a class="code" href="classnetCDF_1_1NcType.html">NcType</a>(xtypep);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// this is a user-defined type</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// now get the set of NcType objects in this file.</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  multimap<string,NcType> typeMap(<a class="code" href="classnetCDF_1_1NcAtt.html#a99b5ae6f999a9bb3c165f7800cdea777">getParentGroup</a>().getTypes(<a class="code" href="classnetCDF_1_1NcGroup.html#a8f7dc5bc7130a1c35a0b93136383e4b3a1adb657d5dc3f43d10e8a80a12c6f8eb">NcGroup::ParentsAndCurrent</a>));</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  multimap<string,NcType>::iterator iter;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// identify the Nctype object with the same id as this attribute.</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">for</span> (iter=typeMap.begin(); iter!= typeMap.end();iter++) {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">if</span>(iter->second.getId() == xtypep) <span class="keywordflow">return</span> iter->second;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// return a null object, as no type was identified.</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> <a class="code" href="classnetCDF_1_1NcType.html">NcType</a>();</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment">// Gets attribute length.</span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a64e248f99b12a0e5929733ecc56cae17"> 87</a></span> <span class="keywordtype">size_t</span> <a class="code" href="classnetCDF_1_1NcAtt.html#a64e248f99b12a0e5929733ecc56cae17">NcAtt::getAttLength</a>()<span class="keyword"> const</span>{</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">size_t</span> lenp;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_inq_attlen(groupId, varId, myName.c_str(), &lenp),__FILE__,__LINE__);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> lenp;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> }</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">string</span>& dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">size_t</span> att_len=<a class="code" href="classnetCDF_1_1NcAtt.html#a64e248f99b12a0e5929733ecc56cae17">getAttLength</a>();</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">char</span>* tmpValues;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  tmpValues = (<span class="keywordtype">char</span> *) malloc(att_len + 1); <span class="comment">/* + 1 for trailing null */</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),tmpValues),__FILE__,__LINE__);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_text(groupId,varId,myName.c_str(),tmpValues),__FILE__,__LINE__);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  dataValues=string(tmpValues,att_len);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  free(tmpValues);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> }</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7"> 110</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">char</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_text(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a0f5ed79d03bf23132774131153638a7a"> 120</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_uchar(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a9213b76196c13858abcf08f032488c88"> 129</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">signed</span> <span class="keywordtype">char</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_schar(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a6b9ce67d4874fc70268fb3c6fa3603e2"> 138</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">short</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_short(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> }</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#ae0045d41ce26b9b4d291366108eaa041"> 147</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">int</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_int(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> }</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a1f9568e2cd6f8b5ba0bc6729c1976f6a"> 156</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">long</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_long(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a0dd7bb7e72bd3cabc3841974d05a890a"> 165</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">float</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_float(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> }</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#aa8e9a8635002de45e771aaf6512d5262"> 174</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">double</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_double(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#ae537ed750f851f25e97998eac26cd355"> 183</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_ushort(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> }</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a155b9805d6d0fd4cb10333bfa7b9f4e8"> 192</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_uint(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> }</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a82ebd2390edd6a6629c66805919060ba"> 201</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">long</span> <span class="keywordtype">long</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_longlong(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a8dc3745a0f34b7ff397fa341c47dd349"> 210</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_ulonglong(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> }</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a951f5db1aa3ed5ef3882c781db194f70"> 219</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">char</span>** dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7f">NcType::ncType</a> typeClass(<a class="code" href="classnetCDF_1_1NcAtt.html#a6f64b3208cd1748555acbb6bb5d38786">getType</a>().getTypeClass());</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">if</span>(typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa6487471ed92d0ffd8f4f491fdd546973">NcType::nc_VLEN</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa10e98cfb098bc69f36afdbdda027ec47">NcType::nc_OPAQUE</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fa99a57ebc9a9aab2582ed59e56ec14cb6">NcType::nc_ENUM</a> || typeClass == <a class="code" href="classnetCDF_1_1NcType.html#a8b3e86d98c97b11782734a60b724ae7fad84521f74d1847bfe1f1c56250237870">NcType::nc_COMPOUND</a>) </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att_string(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> }</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment">// Gets a netCDF variable attribute.</span></div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classnetCDF_1_1NcAtt.html#a4925c5d846efc64cd45426956281fddf"> 228</a></span> <span class="keywordtype">void</span> <a class="code" href="classnetCDF_1_1NcAtt.html#ad265e693eb3f309969e5ce59d0cb23a7">NcAtt::getValues</a>(<span class="keywordtype">void</span>* dataValues)<span class="keyword"> const </span>{</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="namespacenetCDF.html#ac90290d966f6e01dbf22fca241162e18">ncCheck</a>(nc_get_att(groupId,varId,myName.c_str(),dataValues),__FILE__,__LINE__);</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> }</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="ttc" id="classnetCDF_1_1NcAtt_html_a48880b500fc3e9dadf5f692e6af8766c"><div class="ttname"><a href="classnetCDF_1_1NcAtt.html#a48880b500fc3e9dadf5f692e6af8766c">netCDF::NcAtt::NcAtt</a></div><div class="ttdeci">NcAtt()</div><div class="ttdoc">Constructor generates a null object. </div><div class="ttdef"><b>Definition:</b> <a href="ncAtt_8cpp_source.html#l00024">ncAtt.cpp:24</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="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">"NcOpaque type" </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">"NcCompound type" </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 &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 &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">"NcVlen type" </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">"NcEnum type" </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>
|