Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > c9cfbd1355daacaf3b34517a6d7b18cc > files > 100

libdap-doc-3.11.0-2.fc15.i686.rpm

<!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"/>
<title>libdap++: DDS.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libdap++&#160;<span id="projectnumber">Updated for version 3.8.2</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('DDS_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>DDS.h</h1>  </div>
</div>
<div class="contents">
<a href="DDS_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-basic-offset:4 -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">// This file is part of libdap, A C++ implementation of the OPeNDAP Data</span>
<a name="l00004"></a>00004 <span class="comment">// Access Protocol.</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">// Copyright (c) 2002,2003 OPeNDAP, Inc.</span>
<a name="l00007"></a>00007 <span class="comment">// Author: James Gallagher &lt;jgallagher@opendap.org&gt;</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This library is free software; you can redistribute it and/or</span>
<a name="l00010"></a>00010 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00011"></a>00011 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00012"></a>00012 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00017"></a>00017 <span class="comment">// Lesser General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment">//</span>
<a name="l00019"></a>00019 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>
<a name="l00020"></a>00020 <span class="comment">// License along with this library; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00022"></a>00022 <span class="comment">//</span>
<a name="l00023"></a>00023 <span class="comment">// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="comment">// (c) COPYRIGHT URI/MIT 1994-1999</span>
<a name="l00026"></a>00026 <span class="comment">// Please read the full copyright statement in the file COPYRIGHT_URI.</span>
<a name="l00027"></a>00027 <span class="comment">//</span>
<a name="l00028"></a>00028 <span class="comment">// Authors:</span>
<a name="l00029"></a>00029 <span class="comment">//      jhrg,jimg       James Gallagher &lt;jgallagher@gso.uri.edu&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">// Provide access to the DDS. This class is used to parse DDS text files, to</span>
<a name="l00032"></a>00032 <span class="comment">// produce a printed representation of the in-memory variable table, and to</span>
<a name="l00033"></a>00033 <span class="comment">// update the table on a per-variable basis.</span>
<a name="l00034"></a>00034 <span class="comment">//</span>
<a name="l00035"></a>00035 <span class="comment">// jhrg 9/8/94</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="preprocessor">#ifndef _dds_h</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define _dds_h 1</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="preprocessor">#ifndef _basetype_h</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="BaseType_8h.html">BaseType.h</a>&quot;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049 <span class="preprocessor">#ifndef _constructor_h</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="Constructor_8h.html">Constructor.h</a>&quot;</span>
<a name="l00051"></a>00051 <span class="preprocessor">#endif</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a>00053 <span class="preprocessor">#ifndef base_type_factory_h</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="BaseTypeFactory_8h.html">BaseTypeFactory.h</a>&quot;</span>
<a name="l00055"></a>00055 <span class="preprocessor">#endif</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00057"></a>00057 <span class="preprocessor">#ifndef _das_h</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="DAS_8h.html">DAS.h</a>&quot;</span>
<a name="l00059"></a>00059 <span class="preprocessor">#endif</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00061"></a>00061 <span class="preprocessor">#ifndef A_DapObj_h</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="DapObj_8h.html">DapObj.h</a>&quot;</span>
<a name="l00063"></a>00063 <span class="preprocessor">#endif</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>
<a name="l00065"></a>00065 <span class="keyword">using</span> std::cout;
<a name="l00066"></a>00066 
<a name="l00067"></a><a class="code" href="DDS_8h.html#a17b2c419b8632438a2058df948bd87c7">00067</a> <span class="preprocessor">#define FILE_METHODS 1</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00069"></a>00069 <span class="keyword">namespace </span>libdap
<a name="l00070"></a>00070 {
<a name="l00071"></a>00071 
<a name="l00174"></a><a class="code" href="classlibdap_1_1DDS.html">00174</a> <span class="keyword">class </span><a class="code" href="classlibdap_1_1DDS.html">DDS</a> : <span class="keyword">public</span> <a class="code" href="classlibdap_1_1DapObj.html" title="libdap base object for common functionality of libdap objects">DapObj</a>
<a name="l00175"></a>00175 {
<a name="l00176"></a>00176 <span class="keyword">private</span>:
<a name="l00177"></a>00177     <a class="code" href="classlibdap_1_1BaseTypeFactory.html">BaseTypeFactory</a> *d_factory;
<a name="l00178"></a>00178 
<a name="l00179"></a>00179     <span class="keywordtype">string</span> name;                <span class="comment">// The dataset name</span>
<a name="l00180"></a>00180     <span class="keywordtype">string</span> d_filename;          <span class="comment">// File name (or other OS identifier) for</span>
<a name="l00181"></a>00181     <span class="keywordtype">string</span> d_container_name;    <span class="comment">// name of container structure</span>
<a name="l00182"></a>00182     <a class="code" href="classlibdap_1_1Structure.html" title="Holds a structure (aggregate) type.">Structure</a> *d_container;     <span class="comment">// current container for container name</span>
<a name="l00183"></a>00183                                 <span class="comment">// dataset or part of dataset.</span>
<a name="l00184"></a>00184 
<a name="l00185"></a>00185     <span class="keywordtype">int</span> d_dap_major;       <span class="comment">// The protocol major version number</span>
<a name="l00186"></a>00186     <span class="keywordtype">int</span> d_dap_minor;       <span class="comment">// ... and minor version number</span>
<a name="l00187"></a>00187 
<a name="l00188"></a>00188     <span class="keywordtype">string</span> d_request_xml_base;
<a name="l00189"></a>00189 
<a name="l00190"></a>00190     <a class="code" href="classlibdap_1_1AttrTable.html" title="Contains the attributes for a dataset.">AttrTable</a> d_attr;           <span class="comment">// Global attributes.</span>
<a name="l00191"></a>00191 
<a name="l00192"></a>00192     vector&lt;BaseType *&gt; vars;    <span class="comment">// Variables at the top level</span>
<a name="l00193"></a>00193 
<a name="l00194"></a>00194     <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *find_hdf4_dimension_attribute_home(<a class="code" href="structlibdap_1_1AttrTable_1_1entry.html">AttrTable::entry</a> *source);
<a name="l00195"></a>00195 
<a name="l00196"></a>00196     <span class="keywordtype">int</span> d_timeout;              <span class="comment">// alarm time in seconds. If greater than</span>
<a name="l00197"></a>00197                                 <span class="comment">// zero, raise the alarm signal if more than</span>
<a name="l00198"></a>00198                                 <span class="comment">// d_timeout seconds are spent reading data.</span>
<a name="l00199"></a><a class="code" href="classlibdap_1_1DDS.html#a93e283c2829a7c7fb6cc2bf6c990bfbc">00199</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlibdap_1_1DDS.html#a93e283c2829a7c7fb6cc2bf6c990bfbc">DDSTest</a>;
<a name="l00200"></a>00200 
<a name="l00201"></a>00201 <span class="keyword">protected</span>:
<a name="l00202"></a>00202     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a88195f7e5c14124b3d70d07b290dcea4">duplicate</a>(<span class="keyword">const</span> <a class="code" href="classlibdap_1_1DDS.html">DDS</a> &amp;dds);
<a name="l00203"></a>00203     <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *<a class="code" href="classlibdap_1_1DDS.html#a2f60c6b71b5534d5b16c14c9c1dbed00">leaf_match</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;name, <a class="code" href="classlibdap_1_1BaseType.html#ae9c6e71855b90a0e552713011c9ab81f">BaseType::btp_stack</a> *s = 0);
<a name="l00204"></a>00204     <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *<a class="code" href="classlibdap_1_1DDS.html#a6f4fb3cf9a40d44e2e154ab1c0096a5d">exact_match</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;name, <a class="code" href="classlibdap_1_1BaseType.html#ae9c6e71855b90a0e552713011c9ab81f">BaseType::btp_stack</a> *s = 0);
<a name="l00205"></a>00205 <span class="preprocessor">#if 0</span>
<a name="l00206"></a>00206 <span class="preprocessor"></span>    <span class="keyword">virtual</span> <a class="code" href="classlibdap_1_1AttrTable.html" title="Contains the attributes for a dataset.">AttrTable</a> *find_matching_container(<a class="code" href="structlibdap_1_1AttrTable_1_1entry.html">AttrTable::entry</a> *source,
<a name="l00207"></a>00207             <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> **dest_variable);
<a name="l00208"></a>00208 <span class="preprocessor">#endif</span>
<a name="l00209"></a>00209 <span class="preprocessor"></span><span class="keyword">public</span>:
<a name="l00210"></a><a class="code" href="classlibdap_1_1DDS.html#ae18628332086dd04361e0ba745cd91ca">00210</a>     <span class="keyword">typedef</span> std::vector&lt;BaseType *&gt;::const_iterator <a class="code" href="classlibdap_1_1DDS.html#ae18628332086dd04361e0ba745cd91ca">Vars_citer</a> ;
<a name="l00211"></a><a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">00211</a>     <span class="keyword">typedef</span> std::vector&lt;BaseType *&gt;::iterator <a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> ;
<a name="l00212"></a><a class="code" href="classlibdap_1_1DDS.html#a03816194d9596596926d6c8fa1872604">00212</a>     <span class="keyword">typedef</span> std::vector&lt;BaseType *&gt;::reverse_iterator <a class="code" href="classlibdap_1_1DDS.html#a03816194d9596596926d6c8fa1872604">Vars_riter</a> ;
<a name="l00213"></a>00213 
<a name="l00214"></a>00214     <a class="code" href="classlibdap_1_1DDS.html#af703f30c02e91fc883520cf79847f4ea">DDS</a>(<a class="code" href="classlibdap_1_1BaseTypeFactory.html">BaseTypeFactory</a> *factory, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;n = <span class="stringliteral">&quot;&quot;</span>);
<a name="l00215"></a>00215     <a class="code" href="classlibdap_1_1DDS.html#af703f30c02e91fc883520cf79847f4ea">DDS</a>(<span class="keyword">const</span> <a class="code" href="classlibdap_1_1DDS.html">DDS</a> &amp;dds);
<a name="l00216"></a>00216 
<a name="l00217"></a>00217     <span class="keyword">virtual</span> <a class="code" href="classlibdap_1_1DDS.html#a090d0721ce2fd39ea411646cd9ffc264">~DDS</a>();
<a name="l00218"></a>00218 
<a name="l00219"></a>00219     <a class="code" href="classlibdap_1_1DDS.html">DDS</a> &amp; <a class="code" href="classlibdap_1_1DDS.html#afa02245fb564ba26b76c2fd2fd1634ed">operator=</a>(<span class="keyword">const</span> <a class="code" href="classlibdap_1_1DDS.html">DDS</a> &amp;rhs);
<a name="l00220"></a>00220 
<a name="l00221"></a>00221     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a2810a944fbdc7d21b08f2d8c19022b52">transfer_attributes</a>(<a class="code" href="classlibdap_1_1DAS.html" title="Hold attribute data for a DAP2 dataset.">DAS</a> *das);
<a name="l00222"></a>00222 
<a name="l00223"></a>00223     <span class="keywordtype">string</span> <a class="code" href="classlibdap_1_1DDS.html#ac83ef5e2bc4e75da5a21ead478aeff0c">get_dataset_name</a>() <span class="keyword">const</span>;
<a name="l00224"></a>00224     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a0138ce1c3b26968f968a6b723ec70dfb">set_dataset_name</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;n);
<a name="l00225"></a>00225 
<a name="l00230"></a><a class="code" href="classlibdap_1_1DDS.html#aa75678c230c20aaf7626f954de04644f">00230</a>     <a class="code" href="classlibdap_1_1BaseTypeFactory.html">BaseTypeFactory</a> *<a class="code" href="classlibdap_1_1DDS.html#aa75678c230c20aaf7626f954de04644f">get_factory</a>()<span class="keyword"> const</span>
<a name="l00231"></a>00231 <span class="keyword">    </span>{
<a name="l00232"></a>00232         <span class="keywordflow">return</span> d_factory;
<a name="l00233"></a>00233     }
<a name="l00234"></a>00234 
<a name="l00241"></a><a class="code" href="classlibdap_1_1DDS.html#abd73e1da6d32409062399c6e3333814a">00241</a>     <a class="code" href="classlibdap_1_1BaseTypeFactory.html">BaseTypeFactory</a> *<a class="code" href="classlibdap_1_1DDS.html#abd73e1da6d32409062399c6e3333814a">set_factory</a>(<a class="code" href="classlibdap_1_1BaseTypeFactory.html">BaseTypeFactory</a> *factory)
<a name="l00242"></a>00242     {
<a name="l00243"></a>00243         <a class="code" href="classlibdap_1_1BaseTypeFactory.html">BaseTypeFactory</a> *t = d_factory;
<a name="l00244"></a>00244         d_factory = factory;
<a name="l00245"></a>00245         <span class="keywordflow">return</span> t;
<a name="l00246"></a>00246     }
<a name="l00247"></a>00247 
<a name="l00248"></a>00248     <span class="keyword">virtual</span> <a class="code" href="classlibdap_1_1AttrTable.html" title="Contains the attributes for a dataset.">AttrTable</a> &amp;<a class="code" href="classlibdap_1_1DDS.html#a177e3df069cb0dcb3b30c0dcd236f8b3">get_attr_table</a>();
<a name="l00249"></a>00249 
<a name="l00250"></a>00250     <span class="keywordtype">string</span> <a class="code" href="classlibdap_1_1DDS.html#abe8b354fd9412c3d9faed8345671076b">filename</a>();
<a name="l00251"></a>00251     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#abe8b354fd9412c3d9faed8345671076b">filename</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;fn);
<a name="l00252"></a>00252 
<a name="l00254"></a><a class="code" href="classlibdap_1_1DDS.html#ac00ec4e96b91d34bd09254005c4cbfdd">00254</a>     <span class="keywordtype">int</span> <a class="code" href="classlibdap_1_1DDS.html#ac00ec4e96b91d34bd09254005c4cbfdd" title="Get the DAP major version as sent by the client.">get_dap_major</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_dap_major; }
<a name="l00256"></a><a class="code" href="classlibdap_1_1DDS.html#a9ddd1966f1902e4856757cf552fa2b4e">00256</a>     <span class="keywordtype">int</span> <a class="code" href="classlibdap_1_1DDS.html#a9ddd1966f1902e4856757cf552fa2b4e" title="Get the DAP minor version as sent by the client.">get_dap_minor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_dap_minor; }
<a name="l00257"></a>00257 
<a name="l00259"></a><a class="code" href="classlibdap_1_1DDS.html#a03062495c46ed3fad9fa0a5f6f6e8d00">00259</a>     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a03062495c46ed3fad9fa0a5f6f6e8d00" title="Set the DAP major version (typically using info from the client)">set_dap_major</a>(<span class="keywordtype">int</span> p) { d_dap_major = p; }
<a name="l00261"></a><a class="code" href="classlibdap_1_1DDS.html#a358929d8f517dcdfe439037fb402351b">00261</a>     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a358929d8f517dcdfe439037fb402351b" title="Set the DAP minor version (typically using info from the client)">set_dap_minor</a>(<span class="keywordtype">int</span> p) { d_dap_minor = p; }
<a name="l00262"></a>00262 
<a name="l00263"></a>00263     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a53f79560bd6a0f60a37b99f602390631">set_dap_version</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;version_string);
<a name="l00264"></a>00264 
<a name="l00266"></a><a class="code" href="classlibdap_1_1DDS.html#a678cf679929468dc959adc136e727dfb">00266</a>     <span class="keywordtype">string</span> <a class="code" href="classlibdap_1_1DDS.html#a678cf679929468dc959adc136e727dfb" title="Get the URL that will return this DDS/DDX/DataThing.">get_request_xml_base</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_request_xml_base; }
<a name="l00267"></a>00267 
<a name="l00269"></a><a class="code" href="classlibdap_1_1DDS.html#a1872d99f10b845eb15960916229a2457">00269</a>     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a1872d99f10b845eb15960916229a2457">set_request_xml_base</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;xb) { d_request_xml_base = xb; }
<a name="l00270"></a>00270 
<a name="l00271"></a>00271     <span class="keywordtype">string</span> <a class="code" href="classlibdap_1_1DDS.html#aaca262d193346e04d4a6caa7acd117e2">container_name</a>() ;
<a name="l00272"></a>00272     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#aaca262d193346e04d4a6caa7acd117e2">container_name</a>( <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;cn ) ;
<a name="l00273"></a>00273     <a class="code" href="classlibdap_1_1Structure.html" title="Holds a structure (aggregate) type.">Structure</a> *<a class="code" href="classlibdap_1_1DDS.html#add7c78964a7574239e2d3dd6717a0f31">container</a>() ;
<a name="l00274"></a>00274 
<a name="l00275"></a>00275     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#ade87418e97ee5c7efd92279cd41e421c" title="Adds a copy of the variable to the DDS. Using the ptr_duplicate() method, perform a deep copy on the ...">add_var</a>(<a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *bt);
<a name="l00276"></a>00276 
<a name="l00278"></a>00278     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a7030e5bf19371742219f14d6b3aeeedf" title="Removes a variable from the DDS.">del_var</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;n);
<a name="l00279"></a>00279 
<a name="l00280"></a>00280     <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *<a class="code" href="classlibdap_1_1DDS.html#a74c67b99babe3317a0f76c8d8f7ba37a">var</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;n, <a class="code" href="classlibdap_1_1BaseType.html#ae9c6e71855b90a0e552713011c9ab81f">BaseType::btp_stack</a> &amp;s);
<a name="l00281"></a>00281     <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *<a class="code" href="classlibdap_1_1DDS.html#a74c67b99babe3317a0f76c8d8f7ba37a">var</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;n, <a class="code" href="classlibdap_1_1BaseType.html#ae9c6e71855b90a0e552713011c9ab81f">BaseType::btp_stack</a> *s = 0);
<a name="l00282"></a>00282     <span class="keywordtype">int</span> <a class="code" href="classlibdap_1_1DDS.html#a3e99a99da58051c745cc8a3ab82e3b38" title="Returns the number of variables in the DDS.">num_var</a>();
<a name="l00283"></a>00283 
<a name="l00285"></a>00285     <a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> <a class="code" href="classlibdap_1_1DDS.html#aac98f248cd5730a8769f9d71af9788d3" title="Return an iterator to the first variable.">var_begin</a>();
<a name="l00287"></a>00287     <a class="code" href="classlibdap_1_1DDS.html#a03816194d9596596926d6c8fa1872604">Vars_riter</a> <a class="code" href="classlibdap_1_1DDS.html#a395947ea7f5abab45e7bfe7541ec9dc2" title="Return a reverse iterator.">var_rbegin</a>();
<a name="l00289"></a>00289     <a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> <a class="code" href="classlibdap_1_1DDS.html#ad204bbd6eed8d440fb996f41bc986058" title="Return an iterator.">var_end</a>();
<a name="l00291"></a>00291     <a class="code" href="classlibdap_1_1DDS.html#a03816194d9596596926d6c8fa1872604">Vars_riter</a> <a class="code" href="classlibdap_1_1DDS.html#a098d88f09002ad80e27acdb81a52659e" title="Return a reverse iterator.">var_rend</a>();
<a name="l00293"></a>00293     <a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> <a class="code" href="classlibdap_1_1DDS.html#a415f3083d3864eb04d6508772b3c4128" title="Get an iterator.">get_vars_iter</a>(<span class="keywordtype">int</span> i);
<a name="l00295"></a>00295     <a class="code" href="classlibdap_1_1BaseType.html" title="The basic data type for the DODS DAP types.">BaseType</a> *<a class="code" href="classlibdap_1_1DDS.html#a5161e73a84f49c759bd411c8a3c3c356" title="Get a variable.">get_var_index</a>(<span class="keywordtype">int</span> i);
<a name="l00297"></a>00297     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a7030e5bf19371742219f14d6b3aeeedf" title="Removes a variable from the DDS.">del_var</a>(<a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> i);
<a name="l00299"></a>00299     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a7030e5bf19371742219f14d6b3aeeedf" title="Removes a variable from the DDS.">del_var</a>(<a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> i1, <a class="code" href="classlibdap_1_1DDS.html#a5140f67d8f7eecf0a260d8a5d9fc39c5">Vars_iter</a> i2);
<a name="l00300"></a>00300 
<a name="l00301"></a>00301     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a8cd9b6a34f5e1a49665de3189e141de8">timeout_on</a>();
<a name="l00302"></a>00302     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a6740f99a5fc64640505924c5603ace0a">timeout_off</a>();
<a name="l00303"></a>00303     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#ac97d9bc59c742b46614779f9381baf6a">set_timeout</a>(<span class="keywordtype">int</span> t);
<a name="l00304"></a>00304     <span class="keywordtype">int</span> <a class="code" href="classlibdap_1_1DDS.html#a24bd3f9014033dbf054b901028427c33">get_timeout</a>();
<a name="l00305"></a>00305 
<a name="l00306"></a>00306     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a733c8e49ed42ab47d74afe68056340e6" title="Parse a DDS from a file with the given name.">parse</a>(<span class="keywordtype">string</span> fname);
<a name="l00307"></a>00307     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a733c8e49ed42ab47d74afe68056340e6" title="Parse a DDS from a file with the given name.">parse</a>(<span class="keywordtype">int</span> fd);
<a name="l00308"></a>00308     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a733c8e49ed42ab47d74afe68056340e6" title="Parse a DDS from a file with the given name.">parse</a>(FILE *in = stdin);
<a name="l00309"></a>00309 <span class="preprocessor">#if FILE_METHODS</span>
<a name="l00310"></a>00310 <span class="preprocessor"></span>    <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a535b5900c31f0038061f4aef5fa1c6c1" title="Print the entire DDS to the specified ostream.">print</a>(FILE *out);
<a name="l00311"></a>00311     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#ab2e1cacd542373312d5154565b3c1571" title="Print a constrained DDS to the specified ostream.">print_constrained</a>(FILE *out);
<a name="l00312"></a>00312     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#af319354a044d02ea89732160131004dc">print_xml</a>(FILE *out, <span class="keywordtype">bool</span> constrained, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;blob = <span class="stringliteral">&quot;&quot;</span>);
<a name="l00313"></a>00313 <span class="preprocessor">#endif</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span>    <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a535b5900c31f0038061f4aef5fa1c6c1" title="Print the entire DDS to the specified ostream.">print</a>(ostream &amp;out);
<a name="l00315"></a>00315     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#ab2e1cacd542373312d5154565b3c1571" title="Print a constrained DDS to the specified ostream.">print_constrained</a>(ostream &amp;out);
<a name="l00316"></a>00316     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#af319354a044d02ea89732160131004dc">print_xml</a>(ostream &amp;out, <span class="keywordtype">bool</span> constrained, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;blob = <span class="stringliteral">&quot;&quot;</span>);
<a name="l00317"></a>00317 
<a name="l00318"></a>00318     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a03c7fb8494b890e227279e70ba4b483e">mark_all</a>(<span class="keywordtype">bool</span> state);
<a name="l00319"></a>00319     <span class="keywordtype">bool</span> <a class="code" href="classlibdap_1_1DDS.html#a88c063f273e5aa68b38df4d8e09fb426" title="Mark the send_p flag of the named variable to state.">mark</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp;name, <span class="keywordtype">bool</span> state);
<a name="l00320"></a>00320     <span class="keywordtype">bool</span> <a class="code" href="classlibdap_1_1DDS.html#a0d1bf35c18c77a15bb266a895f99f1c6" title="Check the semantics of each of the variables represented in the DDS.">check_semantics</a>(<span class="keywordtype">bool</span> all = <span class="keyword">false</span>);
<a name="l00321"></a>00321 
<a name="l00322"></a>00322     <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#a9d4421c2ccfdbc5ebd4a7d963ab53795" title="Traverse DDS, set Sequence leaf nodes.">tag_nested_sequences</a>();
<a name="l00323"></a>00323 
<a name="l00324"></a>00324     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classlibdap_1_1DDS.html#aebc046a3091961db2802334ddc9280e0" title="dumps information about this object">dump</a>(ostream &amp;strm) <span class="keyword">const</span> ;
<a name="l00325"></a>00325 };
<a name="l00326"></a>00326 
<a name="l00327"></a>00327 } <span class="comment">// namespace libdap</span>
<a name="l00328"></a>00328 
<a name="l00329"></a>00329 <span class="preprocessor">#endif // _dds_h</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="DDS_8h.html">DDS.h</a>      </li>
      <li class="footer">Generated on Tue Feb 8 2011 for libdap++ by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>