Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f149f58f4a75af135bdb24f5dfe94165 > files > 48

libdap-doc-3.9.3-3mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libdap++: ArrayGeoConstraint.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>ArrayGeoConstraint.cc</h1><a href="ArrayGeoConstraint_8cc.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="comment">// -*- mode: c++; c-basic-offset:4 -*-</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">// This file is part of libdap, A C++ implementation of the OPeNDAP Data</span>
<a name="l00005"></a>00005 <span class="comment">// Access Protocol.</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="comment">// Copyright (c) 2002,2003 OPeNDAP, Inc.</span>
<a name="l00008"></a>00008 <span class="comment">// Author: James Gallagher &lt;jgallagher@opendap.org&gt;</span>
<a name="l00009"></a>00009 <span class="comment">//</span>
<a name="l00010"></a>00010 <span class="comment">// This library is free software; you can redistribute it and/or</span>
<a name="l00011"></a>00011 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00012"></a>00012 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00013"></a>00013 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment">//</span>
<a name="l00015"></a>00015 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00016"></a>00016 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00018"></a>00018 <span class="comment">// Lesser General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment">//</span>
<a name="l00020"></a>00020 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>
<a name="l00021"></a>00021 <span class="comment">// License along with this library; if not, write to the Free Software</span>
<a name="l00022"></a>00022 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00023"></a>00023 <span class="comment">//</span>
<a name="l00024"></a>00024 <span class="comment">// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="comment">// The Grid Selection Expression Clause class.</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="config_8h.html">config.h</a>"</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">static</span> <span class="keywordtype">char</span> <span class="keywordtype">id</span>[] <a class="code" href="config_8h.html#05e109ec893d0b12023d5b0cf4f718c4">not_used</a> =
<a name="l00032"></a>00032     { <span class="stringliteral">"$Id: ArrayGeoConstraint.cc 19914 2008-11-25 17:26:22Z jimg $"</span>
<a name="l00033"></a>00033     };
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">//#define DODS_DEBUG</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="debug_8h.html">debug.h</a>"</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="dods-datatypes_8h.html">dods-datatypes.h</a>"</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="ArrayGeoConstraint_8h.html">ArrayGeoConstraint.h</a>"</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include "<a class="code" href="Float64_8h.html">Float64.h</a>"</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="Error_8h.html">Error.h</a>"</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include "<a class="code" href="InternalErr_8h.html">InternalErr.h</a>"</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="ce__functions_8h.html">ce_functions.h</a>"</span>
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">using namespace </span>std;
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">namespace </span>libdap {
<a name="l00053"></a>00053 
<a name="l00055"></a>00055 <span class="keywordtype">void</span> ArrayGeoConstraint::m_init()
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057     <span class="keywordflow">if</span> (d_array-&gt;dimensions() &lt; 2 || d_array-&gt;dimensions() &gt; 3)
<a name="l00058"></a>00058         <span class="keywordflow">throw</span> Error(<span class="stringliteral">"The geoarray() function works only with Arrays of two or three dimensions."</span>);
<a name="l00059"></a>00059 
<a name="l00060"></a>00060     build_lat_lon_maps();
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="comment">// In the other methods the ds_name parameter defaults to "" but that's not</span>
<a name="l00064"></a>00064 <span class="comment">// possible here. Remove ds_name</span>
<a name="l00065"></a><a class="code" href="classlibdap_1_1ArrayGeoConstraint.html#a393630d89963f3a8d1dbdae5bf433f5">00065</a> <a class="code" href="classlibdap_1_1ArrayGeoConstraint.html#8c3be61e11f4451c6e3dd3238396127c">ArrayGeoConstraint::ArrayGeoConstraint</a>(<a class="code" href="classlibdap_1_1Array.html" title="A multidimensional array of identical data types.">Array</a> *<a class="code" href="namespacelibdap.html#ddcb1d714cdecb877c65ff6d2fde0695ed5453774cf1a62b2f92c0c70b989247">array</a>, <span class="keywordtype">double</span> left, <span class="keywordtype">double</span> top,
<a name="l00066"></a>00066         <span class="keywordtype">double</span> right, <span class="keywordtype">double</span> bottom)
<a name="l00067"></a>00067         : <a class="code" href="classlibdap_1_1GeoConstraint.html">GeoConstraint</a>(), d_array(array),
<a name="l00068"></a>00068         d_extent(left, top, right, bottom), d_projection(<span class="stringliteral">"plat-carre"</span>, <span class="stringliteral">"wgs84"</span>)
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 {
<a name="l00071"></a>00071     m_init();
<a name="l00072"></a>00072 }
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="classlibdap_1_1ArrayGeoConstraint.html#11ca3f617db0c421dce14161fd329a5f">00074</a> <a class="code" href="classlibdap_1_1ArrayGeoConstraint.html#8c3be61e11f4451c6e3dd3238396127c">ArrayGeoConstraint::ArrayGeoConstraint</a>(<a class="code" href="classlibdap_1_1Array.html" title="A multidimensional array of identical data types.">Array</a> *<a class="code" href="namespacelibdap.html#ddcb1d714cdecb877c65ff6d2fde0695ed5453774cf1a62b2f92c0c70b989247">array</a>,
<a name="l00075"></a>00075                                        <span class="keywordtype">double</span> left, <span class="keywordtype">double</span> top, <span class="keywordtype">double</span> right, <span class="keywordtype">double</span> bottom,
<a name="l00076"></a>00076                                        <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;projection, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;datum)
<a name="l00077"></a>00077         : <a class="code" href="classlibdap_1_1GeoConstraint.html">GeoConstraint</a>(), d_array(array),
<a name="l00078"></a>00078         d_extent(left, top, right, bottom), d_projection(projection, datum)
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 {
<a name="l00081"></a>00081     m_init();
<a name="l00082"></a>00082 }
<a name="l00083"></a>00083 
<a name="l00095"></a>00095 <span class="keywordtype">bool</span> ArrayGeoConstraint::build_lat_lon_maps()
<a name="l00096"></a>00096 {
<a name="l00097"></a>00097     <span class="comment">// Find the longitude dimension: Assume it is the rightmost</span>
<a name="l00098"></a>00098     <a class="code" href="classlibdap_1_1GeoConstraint.html#c20b690e875e481d18b9cc37265dc6dc">set_longitude_rightmost</a>(<span class="keyword">true</span>);
<a name="l00099"></a>00099     <a class="code" href="classlibdap_1_1GeoConstraint.html#23040c2d4b4b752190c623f62f7ea4a4">set_lon_dim</a>(d_array-&gt;<a class="code" href="classlibdap_1_1Array.html#e6e6943cd895fa8dc1c58621ffad42a0">dim_begin</a>() + (d_array-&gt;<a class="code" href="classlibdap_1_1Array.html#fa75d1ff3c75b8359d03b3f382bfd179" title="Return the total number of dimensions in the array.">dimensions</a>() - 1));
<a name="l00100"></a>00100 
<a name="l00101"></a>00101     <span class="keywordtype">int</span> number_elements_longitude = d_array-&gt;<a class="code" href="classlibdap_1_1Array.html#8f29497af9c33c0d66939d5f9a16d92a" title="Returns the size of the dimension.">dimension_size</a>(<a class="code" href="classlibdap_1_1GeoConstraint.html#5eee5cc9788b429e77bfde9f10bfe751">get_lon_dim</a>());
<a name="l00102"></a>00102     <span class="keywordtype">double</span> *lon_map = <span class="keyword">new</span> <span class="keywordtype">double</span>[number_elements_longitude];
<a name="l00103"></a>00103     <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; number_elements_longitude; ++i) {
<a name="l00104"></a>00104         lon_map[i] = ((d_extent.d_right - d_extent.d_left) / (number_elements_longitude - 1)) * i + d_extent.d_left;
<a name="l00105"></a>00105     }
<a name="l00106"></a>00106     <a class="code" href="classlibdap_1_1GeoConstraint.html#d20909b77fa99bf52350e9b5f6ecdca8">set_lon</a>(lon_map);
<a name="l00107"></a>00107     <a class="code" href="classlibdap_1_1GeoConstraint.html#7af93197ca9a37896a94ad6daa1c7867">set_lon_length</a>(number_elements_longitude);
<a name="l00108"></a>00108 
<a name="l00109"></a>00109     <span class="comment">// Find the latitude dimension: Assume it is the next-rightmost</span>
<a name="l00110"></a>00110     <a class="code" href="classlibdap_1_1GeoConstraint.html#ea6568171e8e75d983c182e216e66f0d">set_lat_dim</a>(d_array-&gt;dim_begin() + (d_array-&gt;dimensions() - 2));
<a name="l00111"></a>00111 
<a name="l00112"></a>00112     <span class="keywordtype">int</span> number_elements_latitude = d_array-&gt;dimension_size(<a class="code" href="classlibdap_1_1GeoConstraint.html#19dbb0b321d3e195a39dc086cacdfc53">get_lat_dim</a>());
<a name="l00113"></a>00113     <span class="keywordtype">double</span> *lat_map = <span class="keyword">new</span> <span class="keywordtype">double</span>[number_elements_latitude];
<a name="l00114"></a>00114     <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; number_elements_latitude; ++i) {
<a name="l00115"></a>00115         lat_map[i] = ((d_extent.d_bottom - d_extent.d_top) / (number_elements_latitude - 1)) * i + d_extent.d_top;
<a name="l00116"></a>00116     }
<a name="l00117"></a>00117     <a class="code" href="classlibdap_1_1GeoConstraint.html#74fbafe177c1fdd9ba657a2f26cbe749">set_lat</a>(lat_map);
<a name="l00118"></a>00118     <a class="code" href="classlibdap_1_1GeoConstraint.html#c2088ce8c8d21dbd8f10bba33b281ada">set_lat_length</a>(number_elements_latitude);
<a name="l00119"></a>00119 
<a name="l00120"></a>00120     <span class="keywordflow">return</span> <a class="code" href="classlibdap_1_1GeoConstraint.html#e1606e5fc999c32610a2ae2d60205a81">get_lat</a>() &amp;&amp; <a class="code" href="classlibdap_1_1GeoConstraint.html#695f79c26e7eef89c380788d3c1d5507">get_lon</a>();
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 
<a name="l00130"></a>00130 <span class="keywordtype">bool</span>
<a name="l00131"></a>00131 ArrayGeoConstraint::lat_lon_dimensions_ok()
<a name="l00132"></a>00132 {
<a name="l00133"></a>00133     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00134"></a>00134 }
<a name="l00135"></a>00135 
<a name="l00150"></a><a class="code" href="classlibdap_1_1ArrayGeoConstraint.html#c9b54a84ae4d34ffbc2e64bfec262e49">00150</a> <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1ArrayGeoConstraint.html#c9b54a84ae4d34ffbc2e64bfec262e49">ArrayGeoConstraint::apply_constraint_to_data</a>()
<a name="l00151"></a>00151 {
<a name="l00152"></a>00152     <span class="keywordflow">if</span> (!<a class="code" href="classlibdap_1_1GeoConstraint.html#3eb15912166e6777c3bba8078c144ff9">get_bounding_box_set</a>())
<a name="l00153"></a>00153         <span class="keywordflow">throw</span> <a class="code" href="classlibdap_1_1InternalErr.html" title="A class for software fault reporting.">InternalErr</a>(
<a name="l00154"></a>00154             <span class="stringliteral">"The Latitude and Longitude constraints must be set before calling\n\</span>
<a name="l00155"></a>00155 <span class="stringliteral">            apply_constraint_to_data()."</span>);
<a name="l00156"></a>00156 
<a name="l00157"></a>00157     <span class="keywordflow">if</span> (<a class="code" href="classlibdap_1_1GeoConstraint.html#c2f5c3f3e098c91f23e194fe7b775af8">get_latitude_sense</a>() == <a class="code" href="classlibdap_1_1GeoConstraint.html#2304140a3b6310c6ed8bce30ebdaed7b77fdac07a46105592ea0707f365f04c6">inverted</a>) {
<a name="l00158"></a>00158         <span class="keywordtype">int</span> tmp = <a class="code" href="classlibdap_1_1GeoConstraint.html#e0593d431954560825dcd96ded2141a7">get_latitude_index_top</a>();
<a name="l00159"></a>00159         <a class="code" href="classlibdap_1_1GeoConstraint.html#58cf100c6ac40095273520035ff3f2ee">set_latitude_index_top</a>(<a class="code" href="classlibdap_1_1GeoConstraint.html#3f924c14bc89937c3db0b141f873b238">get_latitude_index_bottom</a>());
<a name="l00160"></a>00160         <a class="code" href="classlibdap_1_1GeoConstraint.html#f69dd8771a629e0b6da655e0c31b3dd6">set_latitude_index_bottom</a>(tmp);
<a name="l00161"></a>00161     }
<a name="l00162"></a>00162 
<a name="l00163"></a>00163     <span class="comment">// It's easy to flip the Latitude values; if the bottom index value</span>
<a name="l00164"></a>00164     <span class="comment">// is before/above the top index, return an error explaining that.</span>
<a name="l00165"></a>00165     <span class="keywordflow">if</span> (<a class="code" href="classlibdap_1_1GeoConstraint.html#e0593d431954560825dcd96ded2141a7">get_latitude_index_top</a>() &gt; <a class="code" href="classlibdap_1_1GeoConstraint.html#3f924c14bc89937c3db0b141f873b238">get_latitude_index_bottom</a>())
<a name="l00166"></a>00166         <span class="keywordflow">throw</span> <a class="code" href="classlibdap_1_1Error.html" title="A class for error processing.">Error</a>(<span class="stringliteral">"The upper and lower latitude indexes appear to be reversed. Please provide\nthe latitude bounding box numbers giving the northern-most latitude first."</span>);
<a name="l00167"></a>00167 
<a name="l00168"></a>00168     d_array-&gt;<a class="code" href="classlibdap_1_1Array.html#538f7c336e26b873f50e033d553bba26" title="Adds a constraint to an Array dimension.">add_constraint</a>(<a class="code" href="classlibdap_1_1GeoConstraint.html#19dbb0b321d3e195a39dc086cacdfc53">get_lat_dim</a>(),
<a name="l00169"></a>00169                             <a class="code" href="classlibdap_1_1GeoConstraint.html#e0593d431954560825dcd96ded2141a7">get_latitude_index_top</a>(), 1,
<a name="l00170"></a>00170                             <a class="code" href="classlibdap_1_1GeoConstraint.html#3f924c14bc89937c3db0b141f873b238">get_latitude_index_bottom</a>());
<a name="l00171"></a>00171 
<a name="l00172"></a>00172     <span class="comment">// Does the longitude constraint cross the edge of the longitude vector?</span>
<a name="l00173"></a>00173     <span class="comment">// If so, reorder the data (array).</span>
<a name="l00174"></a>00174     <span class="keywordflow">if</span> (<a class="code" href="classlibdap_1_1GeoConstraint.html#8550d6aea8efad6f197b3350c19a25dc">get_longitude_index_left</a>() &gt; <a class="code" href="classlibdap_1_1GeoConstraint.html#8f7a2a062f1fa421de74bd41339c9e1b">get_longitude_index_right</a>()) {
<a name="l00175"></a>00175         <a class="code" href="classlibdap_1_1GeoConstraint.html#c7008d3cbd75838d30c7b5c8b5fe9baa">reorder_data_longitude_axis</a>(*d_array);
<a name="l00176"></a>00176 
<a name="l00177"></a>00177         <span class="comment">// Now the data are all in local storage</span>
<a name="l00178"></a>00178 
<a name="l00179"></a>00179         <span class="comment">// alter the indexes; the left index has now been moved to 0, and the right</span>
<a name="l00180"></a>00180         <span class="comment">// index is now at lon_vector_length-left+right.</span>
<a name="l00181"></a>00181         <a class="code" href="classlibdap_1_1GeoConstraint.html#d2217cd57779104cc3e9633c74b66607">set_longitude_index_right</a>(<a class="code" href="classlibdap_1_1GeoConstraint.html#505eb309753eabe0c6a5bb3d412a3579">get_lon_length</a>() - <a class="code" href="classlibdap_1_1GeoConstraint.html#8550d6aea8efad6f197b3350c19a25dc">get_longitude_index_left</a>()
<a name="l00182"></a>00182                                   + <a class="code" href="classlibdap_1_1GeoConstraint.html#8f7a2a062f1fa421de74bd41339c9e1b">get_longitude_index_right</a>());
<a name="l00183"></a>00183         <a class="code" href="classlibdap_1_1GeoConstraint.html#2a2256b437d39ca3e868c70cb407cc98">set_longitude_index_left</a>(0);
<a name="l00184"></a>00184     }
<a name="l00185"></a>00185     <span class="comment">// If the constraint used the -180/179 (neg_pos) notation, transform</span>
<a name="l00186"></a>00186     <span class="comment">// the longitude map s it uses the -180/179 notation. Note that at this</span>
<a name="l00187"></a>00187     <span class="comment">// point, d_longitude always uses the pos notation because of the earlier</span>
<a name="l00188"></a>00188     <span class="comment">// conditional transformation.</span>
<a name="l00189"></a>00189 
<a name="l00190"></a>00190     <span class="comment">// Apply constraint; stride is always one</span>
<a name="l00191"></a>00191     d_array-&gt;<a class="code" href="classlibdap_1_1Array.html#538f7c336e26b873f50e033d553bba26" title="Adds a constraint to an Array dimension.">add_constraint</a>(<a class="code" href="classlibdap_1_1GeoConstraint.html#5eee5cc9788b429e77bfde9f10bfe751">get_lon_dim</a>(),
<a name="l00192"></a>00192                             <a class="code" href="classlibdap_1_1GeoConstraint.html#8550d6aea8efad6f197b3350c19a25dc">get_longitude_index_left</a>(), 1,
<a name="l00193"></a>00193                             <a class="code" href="classlibdap_1_1GeoConstraint.html#8f7a2a062f1fa421de74bd41339c9e1b">get_longitude_index_right</a>());
<a name="l00194"></a>00194 
<a name="l00195"></a>00195     <span class="comment">// Load the array if it has been read, which will be the case if</span>
<a name="l00196"></a>00196     <span class="comment">// reorder_data_longitude_axis() has been called.</span>
<a name="l00197"></a>00197     <span class="keywordflow">if</span> (<a class="code" href="classlibdap_1_1GeoConstraint.html#05febc86a7353548656d76cbe659d4ed">get_array_data</a>()) {
<a name="l00198"></a>00198 
<a name="l00199"></a>00199         <span class="keywordtype">int</span> size = d_array-&gt;<a class="code" href="classlibdap_1_1Vector.html#96ecf84f2798065878755d9a9014ee69" title="Reads data into the Vector buffer. Thrown if called for Structure, Sequence or Grid...">val2buf</a>(<a class="code" href="classlibdap_1_1GeoConstraint.html#05febc86a7353548656d76cbe659d4ed">get_array_data</a>());
<a name="l00200"></a>00200 
<a name="l00201"></a>00201         <span class="keywordflow">if</span> (size != <a class="code" href="classlibdap_1_1GeoConstraint.html#93b13c51f03265b77c26c639253eb84c">get_array_data_size</a>())
<a name="l00202"></a>00202             <span class="keywordflow">throw</span> <a class="code" href="classlibdap_1_1InternalErr.html" title="A class for software fault reporting.">InternalErr</a>
<a name="l00203"></a>00203             (<span class="stringliteral">"Expected data size not copied to the Grid's buffer."</span>);
<a name="l00204"></a>00204         d_array-&gt;<a class="code" href="classlibdap_1_1Vector.html#58712de8871e28a48fdc95e72a09df71" title="Indicates that the data is ready to send.">set_read_p</a>(<span class="keyword">true</span>);
<a name="l00205"></a>00205     }
<a name="l00206"></a>00206     <span class="keywordflow">else</span> {
<a name="l00207"></a>00207         d_array-&gt;<a class="code" href="classlibdap_1_1BaseType.html#1da003c53f2e663223f603ab3fbd7c8e" title="Read data into a local buffer.">read</a>();
<a name="l00208"></a>00208     }
<a name="l00209"></a>00209 }
<a name="l00210"></a>00210 
<a name="l00211"></a>00211 } <span class="comment">// namespace libdap</span>
<a name="l00212"></a>00212 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 19:57:06 2009 for libdap++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>