Sophie

Sophie

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

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++: cgi_util.cc File Reference</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>
</div>
<div class="contents">
<h1>cgi_util.cc File Reference</h1><code>#include &quot;<a class="el" href="config_8h_source.html">config.h</a>&quot;</code><br>
<code>#include &lt;cstring&gt;</code><br>
<code>#include &lt;cstdio&gt;</code><br>
<code>#include &lt;ctype.h&gt;</code><br>
<code>#include &lt;time.h&gt;</code><br>
<code>#include &lt;sys/types.h&gt;</code><br>
<code>#include &lt;sys/stat.h&gt;</code><br>
<code>#include &lt;unistd.h&gt;</code><br>
<code>#include &lt;sys/wait.h&gt;</code><br>
<code>#include &lt;iostream&gt;</code><br>
<code>#include &lt;sstream&gt;</code><br>
<code>#include &lt;fstream&gt;</code><br>
<code>#include &lt;string&gt;</code><br>
<code>#include &quot;<a class="el" href="cgi__util_8h_source.html">cgi_util.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="Ancillary_8h_source.html">Ancillary.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="util_8h_source.html">util.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="debug_8h_source.html">debug.h</a>&quot;</code><br>

<p>
<div class="dynheader">
Include dependency graph for cgi_util.cc:</div>
<div class="dynsection">
<p><center><img src="cgi__util_8cc__incl.png" border="0" usemap="#cgi_util.cc_map" alt=""></center>
<map name="cgi_util.cc_map">
<area shape="rect" id="node3" href="config_8h.html" title="config.h" alt="" coords="5,80,107,107"><area shape="rect" id="node29" href="cgi__util_8h.html" title="cgi_util.h" alt="" coords="1421,80,1541,107"><area shape="rect" id="node87" href="Ancillary_8h.html" title="Ancillary.h" alt="" coords="1431,304,1561,331"><area shape="rect" id="node92" href="util_8h.html" title="util.h" alt="" coords="2697,80,2777,107"><area shape="rect" id="node177" href="debug_8h.html" title="debug.h" alt="" coords="2801,80,2892,107"><area shape="rect" id="node31" href="DDS_8h.html" title="DDS.h" alt="" coords="1601,379,1673,405"><area shape="rect" id="node83" href="ObjectType_8h.html" title="ObjectType.h" alt="" coords="1415,155,1556,181"><area shape="rect" id="node85" href="EncodingType_8h.html" title="EncodingType.h" alt="" coords="1231,155,1391,181"><area shape="rect" id="node38" href="BaseType_8h.html" title="BaseType.h" alt="" coords="2740,528,2860,555"><area shape="rect" id="node70" href="Constructor_8h.html" title="Constructor.h" alt="" coords="2289,453,2441,480"><area shape="rect" id="node74" href="BaseTypeFactory_8h.html" title="BaseTypeFactory.h" alt="" coords="1704,677,1896,704"><area shape="rect" id="node77" href="DAS_8h.html" title="DAS.h" alt="" coords="1425,528,1497,555"><area shape="rect" id="node45" href="InternalErr_8h.html" title="InternalErr.h" alt="" coords="2471,603,2623,629"><area shape="rect" id="node53" href="dods-datatypes_8h.html" title="dods&#45;datatypes.h" alt="" coords="3309,677,3491,704"><area shape="rect" id="node55" href="Marshaller_8h.html" title="Marshaller.h" alt="" coords="2647,603,2788,629"><area shape="rect" id="node60" href="UnMarshaller_8h.html" title="UnMarshaller.h" alt="" coords="2812,603,2972,629"><area shape="rect" id="node65" href="AttrTable_8h.html" title="AttrTable.h" alt="" coords="1737,603,1868,629"><area shape="rect" id="node48" href="Error_8h.html" title="Error.h" alt="" coords="1539,677,1629,704"><area shape="rect" id="node96" href="Byte_8h.html" title="Byte.h" alt="" coords="3481,453,3561,480"><area shape="rect" id="node102" href="Int16_8h.html" title="Int16.h" alt="" coords="2964,453,3055,480"><area shape="rect" id="node107" href="UInt16_8h.html" title="UInt16.h" alt="" coords="3079,453,3180,480"><area shape="rect" id="node112" href="Int32_8h.html" title="Int32.h" alt="" coords="3585,453,3676,480"><area shape="rect" id="node117" href="UInt32_8h.html" title="UInt32.h" alt="" coords="3356,453,3457,480"><area shape="rect" id="node122" href="Float32_8h.html" title="Float32.h" alt="" coords="3700,453,3812,480"><area shape="rect" id="node127" href="Float64_8h.html" title="Float64.h" alt="" coords="3836,453,3948,480"><area shape="rect" id="node132" href="Str_8h.html" title="Str.h" alt="" coords="2092,453,2164,480"><area shape="rect" id="node138" href="Url_8h.html" title="Url.h" alt="" coords="2165,379,2237,405"><area shape="rect" id="node144" href="Array_8h.html" title="Array.h" alt="" coords="1825,229,1916,256"><area shape="rect" id="node154" href="Structure_8h.html" title="Structure.h" alt="" coords="2583,304,2713,331"><area shape="rect" id="node161" href="Sequence_8h.html" title="Sequence.h" alt="" coords="2788,379,2908,405"><area shape="rect" id="node171" href="Grid_8h.html" title="Grid.h" alt="" coords="1987,155,2067,181"><area shape="rect" id="node99" href="ConstraintEvaluator_8h.html" title="ConstraintEvaluator.h" alt="" coords="3275,528,3507,555"><area shape="rect" id="node135" href="dods-limits_8h.html" title="dods&#45;limits.h" alt="" coords="1991,528,2143,555"><area shape="rect" id="node148" href="Vector_8h.html" title="Vector.h" alt="" coords="1991,304,2092,331"><area shape="rect" id="node164" href="XDRUtils_8h.html" title="XDRUtils.h" alt="" coords="2516,453,2636,480"></map>
</div>

<p>
<a href="cgi__util_8cc_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html">libdap</a></td></tr>

<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cgi__util_8cc.html#6cb23a858b0a21bdaa644b9181dc415f">CRLF</a>&nbsp;&nbsp;&nbsp;&quot;\r\n&quot;</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cgi__util_8cc.html#f3473dbdf511d56454bb32d78e5885b0">FILE_DELIMITER</a>&nbsp;&nbsp;&nbsp;'/'</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#505f2ae07c56035f983661b3fbe927a0">libdap::found_override</a> (string name, string &amp;doc)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#54e36c78a7918d7177d02c0d0dc97535">libdap::get_user_supplied_docs</a> (string name, string cgi)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Look for the user supplied CGI- and dataset-specific HTML* documents.  <a href="#54e36c78a7918d7177d02c0d0dc97535"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#84080cf0736578f62620dde0fd3f2110">libdap::remove_mime_header</a> (FILE *in)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read and discard the MIME header of the stream <code>in</code>.  <a href="#84080cf0736578f62620dde0fd3f2110"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">CGI Utilities</div></td></tr>
<tr><td colspan="2"><div class="groupText">A collection of useful functions for writing OPeNDAP servers.<p>
The CGI utilities include a variety of functions useful to programmers developing OPeNDAP CGI filter programs. However, before jumping in and using these, look at the class DODSFilter. Always choose to use that class over these functions if you can.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>DODSFilter </dd></dl>
<br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#7e95f81049cb65e60edcc5ec41d445d7">libdap::do_version</a> (const string &amp;script_ver, const string &amp;dataset_ver)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send a version number.  <a href="#7e95f81049cb65e60edcc5ec41d445d7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#c76ab0ba8dd2e6d2db8e4d07175ea266">libdap::ErrMsgT</a> (const string &amp;Msgt)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Logs an error message.  <a href="#c76ab0ba8dd2e6d2db8e4d07175ea266"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#394c0b1380a16e886f96bf4a9081ed3a">libdap::last_modified_time</a> (const string &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#b6f5b13bfa1cc80a83ca5e78ed97c62b">libdap::name_path</a> (const string &amp;path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the filename portion of a pathname.  <a href="#b6f5b13bfa1cc80a83ca5e78ed97c62b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#c9f9538a83379c66933c2c40d90c268e">libdap::rfc822_date</a> (const time_t t)</td></tr>

<tr><td colspan="2"><div class="groupHeader">MIME utility functions</div></td></tr>
<tr><td colspan="2"><div class="groupText">These functions are used to create the MIME headers for a message from a server to a client. They are public but should not be called directly unless absolutely necessary. Use DODSFilter instead.<p>
NB: These functions actually write both the response status line <em>and</em> the header.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>DODSFilter </dd></dl>
<br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#e55c70a6b2073269d49dd7654d625710">libdap::set_mime_binary</a> (ostream &amp;strm, ObjectType type, const string &amp;ver, EncodingType enc, const time_t last_modified)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#57a713334cf4756cabd29e7468ef8bae">libdap::set_mime_binary</a> (FILE *out, ObjectType type, const string &amp;ver, EncodingType enc, const time_t last_modified)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#b2d00f30883d50ec4c6a7e48e489f8c0">libdap::set_mime_error</a> (ostream &amp;strm, int code, const string &amp;reason, const string &amp;<a class="el" href="getdap_8cc.html#a31f487a99743d24af9076a3e11e5425">version</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#21859ebeabd395e729583e2b15328cfa">libdap::set_mime_error</a> (FILE *out, int code, const string &amp;reason, const string &amp;<a class="el" href="getdap_8cc.html#a31f487a99743d24af9076a3e11e5425">version</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#2d47123836f484835fd6d85d66ca0129">libdap::set_mime_html</a> (ostream &amp;strm, ObjectType type, const string &amp;ver, EncodingType enc, const time_t last_modified)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#244daa3bbc88d3d96624ec6359d07bcc">libdap::set_mime_html</a> (FILE *out, ObjectType type, const string &amp;ver, EncodingType enc, const time_t last_modified)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#9ff38622675d29e932726aea56525a40">libdap::set_mime_not_modified</a> (ostream &amp;strm)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send a `Not Modified' response.  <a href="#9ff38622675d29e932726aea56525a40"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#46842454008837163552f30754a7388a">libdap::set_mime_not_modified</a> (FILE *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send a `Not Modified' response.  <a href="#46842454008837163552f30754a7388a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#7a785b8fcc89e5be01284c06a9dbc97d">libdap::set_mime_text</a> (ostream &amp;strm, ObjectType type, const string &amp;ver, EncodingType enc, const time_t last_modified)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ef829d3d34220c1f9db6cd02ae56847a">libdap::set_mime_text</a> (FILE *out, ObjectType type, const string &amp;ver, EncodingType enc, const time_t last_modified)</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="6cb23a858b0a21bdaa644b9181dc415f"></a><!-- doxytag: member="cgi_util.cc::CRLF" ref="6cb23a858b0a21bdaa644b9181dc415f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CRLF&nbsp;&nbsp;&nbsp;&quot;\r\n&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="cgi__util_8cc_source.html#l00086">86</a> of file <a class="el" href="cgi__util_8cc_source.html">cgi_util.cc</a>.</p>

<p>Referenced by <a class="el" href="cgi__util_8cc_source.html#l00109">libdap::do_version()</a>, <a class="el" href="cgi__util_8cc_source.html#l00716">libdap::remove_mime_header()</a>, <a class="el" href="cgi__util_8cc_source.html#l00518">libdap::set_mime_binary()</a>, <a class="el" href="cgi__util_8cc_source.html#l00602">libdap::set_mime_error()</a>, <a class="el" href="cgi__util_8cc_source.html#l00423">libdap::set_mime_html()</a>, <a class="el" href="cgi__util_8cc_source.html#l00657">libdap::set_mime_not_modified()</a>, and <a class="el" href="cgi__util_8cc_source.html#l00319">libdap::set_mime_text()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f3473dbdf511d56454bb32d78e5885b0"></a><!-- doxytag: member="cgi_util.cc::FILE_DELIMITER" ref="f3473dbdf511d56454bb32d78e5885b0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FILE_DELIMITER&nbsp;&nbsp;&nbsp;'/'          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="cgi__util_8cc_source.html#l00082">82</a> of file <a class="el" href="cgi__util_8cc_source.html">cgi_util.cc</a>.</p>

<p>Referenced by <a class="el" href="cgi__util_8cc_source.html#l00190">libdap::name_path()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 19:57:25 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>