Sophie

Sophie

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

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++: mime_util.cc File Reference</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('mime__util_8cc.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mime_util.cc File Reference</h1>  </div>
</div>
<div class="contents">
<div class="textblock"><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="mime__util_8h_source.html">mime_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/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for mime_util.cc:</div>
<div class="dyncontent">
<div class="center"><img src="mime__util_8cc__incl.png" border="0" usemap="#mime__util_8cc" alt=""/></div>
<map name="mime__util_8cc" id="mime__util_8cc">
<area shape="rect" id="node3" href="config_8h.html" title="config.h" alt="" coords="5,80,107,107"/><area shape="rect" id="node29" href="mime__util_8h.html" title="mime_util.h" alt="" coords="1305,80,1436,107"/><area shape="rect" id="node100" href="Ancillary_8h.html" title="Ancillary.h" alt="" coords="1787,80,1917,107"/><area shape="rect" id="node105" href="util_8h.html" title="util.h" alt="" coords="1613,229,1696,256"/><area shape="rect" id="node110" href="debug_8h.html" title="debug.h" alt="" coords="2088,80,2179,107"/><area shape="rect" id="node31" href="DDS_8h.html" title="DDS.h" alt="" coords="1465,155,1537,181"/><area shape="rect" id="node96" href="ObjectType_8h.html" title="ObjectType.h" alt="" coords="1300,155,1441,181"/><area shape="rect" id="node98" href="EncodingType_8h.html" title="EncodingType.h" alt="" coords="1113,155,1276,181"/><area shape="rect" id="node38" href="BaseType_8h.html" title="BaseType.h" alt="" coords="876,304,999,331"/><area shape="rect" id="node54" href="DapObj_8h.html" title="DapObj.h" alt="" coords="621,453,723,480"/><area shape="rect" id="node82" href="Constructor_8h.html" title="Constructor.h" alt="" coords="975,229,1127,256"/><area shape="rect" id="node86" href="BaseTypeFactory_8h.html" title="BaseTypeFactory.h" alt="" coords="1452,304,1644,331"/><area shape="rect" id="node89" href="DAS_8h.html" title="DAS.h" alt="" coords="1835,304,1907,331"/><area shape="rect" id="node45" href="AttrTable_8h.html" title="AttrTable.h" alt="" coords="1251,379,1381,405"/><area shape="rect" id="node61" href="InternalErr_8h.html" title="InternalErr.h" alt="" coords="1456,379,1608,405"/><area shape="rect" id="node65" href="dods-datatypes_8h.html" title="dods&#45;datatypes.h" alt="" coords="416,453,597,480"/><area shape="rect" id="node70" href="Marshaller_8h.html" title="Marshaller.h" alt="" coords="549,379,691,405"/><area shape="rect" id="node76" href="UnMarshaller_8h.html" title="UnMarshaller.h" alt="" coords="715,379,877,405"/><area shape="rect" id="node49" href="Error_8h.html" title="Error.h" alt="" coords="1404,453,1495,480"/><area shape="rect" id="node57" href="DapIndent_8h.html" title="DapIndent.h" alt="" coords="647,528,777,555"/></map>
</div>
</div>
<p><a href="mime__util_8cc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html">libdap</a></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mime__util_8cc.html#a6cb23a858b0a21bdaa644b9181dc415f">CRLF</a>&#160;&#160;&#160;&quot;\r\n&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mime__util_8cc.html#af3473dbdf511d56454bb32d78e5885b0">FILE_DELIMITER</a>&#160;&#160;&#160;'/'</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a6267c527b6792dccd24212308645026f">libdap::cid_to_header_value</a> (const string &amp;cid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a505f2ae07c56035f983661b3fbe927a0">libdap::found_override</a> (string name, string &amp;doc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ObjectType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a284c1c548cbcea75bb1b7c8374dc04e9">libdap::get_description_type</a> (const string &amp;value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a138ad983bab51cd81239f2e3d0572486">libdap::get_next_mime_header</a> (FILE *in)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ObjectType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#aceb42dce2c3676ca9785ee89190ab4ce">libdap::get_type</a> (const string &amp;value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#adf7e4c413496dc6047a0ea00855e78cb">libdap::is_boundary</a> (const char *line, const string &amp;boundary)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a3853818a415408fd980e8f3a9321d5d8">libdap::parse_mime_header</a> (const string &amp;header, string &amp;name, string &amp;value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ae06585f4af69dae8595002949b3e29f5">libdap::read_multipart_boundary</a> (FILE *in, const string &amp;boundary)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a84080cf0736578f62620dde0fd3f2110">libdap::remove_mime_header</a> (FILE *in)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read and discard the MIME header of the stream <code>in</code>.  <a href="#a84080cf0736578f62620dde0fd3f2110"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">CGI Utilities</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>A collection of useful functions for writing OPeNDAP servers.</p>
<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"><dt><b>See also:</b></dt><dd>DODSFilter </dd></dl>
</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a7e95f81049cb65e60edcc5ec41d445d7">libdap::do_version</a> (const string &amp;script_ver, const string &amp;dataset_ver)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a version number.  <a href="#a7e95f81049cb65e60edcc5ec41d445d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ac76ab0ba8dd2e6d2db8e4d07175ea266">libdap::ErrMsgT</a> (const string &amp;Msgt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Logs an error message.  <a href="#ac76ab0ba8dd2e6d2db8e4d07175ea266"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ab6f5b13bfa1cc80a83ca5e78ed97c62b">libdap::name_path</a> (const string &amp;path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the filename portion of a pathname.  <a href="#ab6f5b13bfa1cc80a83ca5e78ed97c62b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ac9f9538a83379c66933c2c40d90c268e">libdap::rfc822_date</a> (const time_t t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a394c0b1380a16e886f96bf4a9081ed3a">libdap::last_modified_time</a> (const string &amp;name)</td></tr>
<tr><td colspan="2"><div class="groupHeader">MIME utility functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>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>
<p>NB: These functions actually write both the response status line <em>and</em> the header.</p>
<dl class="see"><dt><b>See also:</b></dt><dd>DODSFilter </dd></dl>
</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a7a785b8fcc89e5be01284c06a9dbc97d">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" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a2d47123836f484835fd6d85d66ca0129">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" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ae55c70a6b2073269d49dd7654d625710">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" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a8e8484bd3d54c09c120cb7afcde19d1f">libdap::set_mime_multipart</a> (ostream &amp;strm, const string &amp;boundary, const string &amp;start, ObjectType type, const string &amp;<a class="el" href="getdap_8cc.html#aa31f487a99743d24af9076a3e11e5425">version</a>, EncodingType enc, const time_t last_modified)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a387c60d25f7e78d4ced09c7907ad0662">libdap::set_mime_ddx_boundary</a> (ostream &amp;strm, const string &amp;boundary, const string &amp;cid, ObjectType type, EncodingType enc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a02822649dbf10c226e3f6be5c8a89991">libdap::set_mime_data_boundary</a> (ostream &amp;strm, const string &amp;boundary, const string &amp;cid, ObjectType type, EncodingType enc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a96c1d42b551af831c26287053386e244">libdap::read_multipart_headers</a> (FILE *in, const string &amp;content_type, const ObjectType object_type, const string &amp;cid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#ab2d00f30883d50ec4c6a7e48e489f8c0">libdap::set_mime_error</a> (ostream &amp;strm, int code, const string &amp;reason, const string &amp;<a class="el" href="getdap_8cc.html#aa31f487a99743d24af9076a3e11e5425">version</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#a9ff38622675d29e932726aea56525a40">libdap::set_mime_not_modified</a> (ostream &amp;strm)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a `Not Modified' response.  <a href="#a9ff38622675d29e932726aea56525a40"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibdap.html#af4ad71f4bf4ef84acab107dd8f77749e">libdap::line_length</a> = 1024</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a6cb23a858b0a21bdaa644b9181dc415f"></a><!-- doxytag: member="mime_util.cc::CRLF" ref="a6cb23a858b0a21bdaa644b9181dc415f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CRLF&#160;&#160;&#160;&quot;\r\n&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Referenced by <a class="el" href="mime__util_8cc_source.html#l00109">libdap::do_version()</a>, <a class="el" href="mime__util_8cc_source.html#l00730">libdap::get_next_mime_header()</a>, <a class="el" href="mime__util_8cc_source.html#l01010">libdap::remove_mime_header()</a>, <a class="el" href="mime__util_8cc_source.html#l00624">libdap::set_mime_binary()</a>, <a class="el" href="mime__util_8cc_source.html#l00702">libdap::set_mime_data_boundary()</a>, <a class="el" href="mime__util_8cc_source.html#l00689">libdap::set_mime_ddx_boundary()</a>, <a class="el" href="mime__util_8cc_source.html#l00922">libdap::set_mime_error()</a>, <a class="el" href="mime__util_8cc_source.html#l00528">libdap::set_mime_html()</a>, <a class="el" href="mime__util_8cc_source.html#l00655">libdap::set_mime_multipart()</a>, <a class="el" href="mime__util_8cc_source.html#l00966">libdap::set_mime_not_modified()</a>, and <a class="el" href="mime__util_8cc_source.html#l00429">libdap::set_mime_text()</a>.</p>

</div>
</div>
<a class="anchor" id="af3473dbdf511d56454bb32d78e5885b0"></a><!-- doxytag: member="mime_util.cc::FILE_DELIMITER" ref="af3473dbdf511d56454bb32d78e5885b0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FILE_DELIMITER&#160;&#160;&#160;'/'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="mime__util_8cc.html">mime_util.cc</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>