Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 82bf76c75b44c3e54c5dc9d8c4b11ab5 > files > 124

cgicc-3.2.8-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
   "http://www.w3.org/TR/REC-html40/loose.dtd">

<html lang="en" dir="LTR">

<head>
  <!-- $Id: header.html,v 1.5 2004/06/12 01:58:25 sbooth Exp $ -->
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>cgicc: cgicc::FormFile Class Reference</title>
  <link rev="made" href="mailto:bug-cgicc@gnu.org" />
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
  <link href="cgicc-doc.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="index.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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacecgicc.html">cgicc</a>::<a class="el" href="classcgicc_1_1FormFile.html">FormFile</a>
  </div>
</div>
<div class="contents">
<h1>cgicc::FormFile Class Reference</h1><!-- doxytag: class="cgicc::FormFile" -->Class representing a file submitted via an HTML form.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FormFile_8h_source.html">cgicc/FormFile.h</a>&gt;</code>
<p>

<p>
<a href="classcgicc_1_1FormFile-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
<tr><td colspan="2"><div class="groupText"><br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#66bfe8969ce7a6c2c163ec9c10589243">FormFile</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#66bfe8969ce7a6c2c163ec9c10589243"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#45cc8bd4072bcb8c69a159764549f09d">FormFile</a> (const std::string &amp;name, const std::string &amp;filename, const std::string &amp;dataType, const std::string &amp;data)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a>.  <a href="#45cc8bd4072bcb8c69a159764549f09d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#8183b86021d5a213ec5e8629d39736a4">FormFile</a> (const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;file)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#8183b86021d5a213ec5e8629d39736a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#e502893097f7fe905e6cdf7335b60f63">~FormFile</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#e502893097f7fe905e6cdf7335b60f63"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Overloaded Operators</div></td></tr>
<tr><td colspan="2"><div class="groupText"><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="classcgicc_1_1FormFile.html#5ef6b07489ea03a25de9cf898f10fbc5">operator==</a> (const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;file) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two FormFiles for equality.  <a href="#5ef6b07489ea03a25de9cf898f10fbc5"></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="classcgicc_1_1FormFile.html#3e9fdbfd09fc524a55c147e43b849437">operator!=</a> (const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;file) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two FormFiles for inequality.  <a href="#3e9fdbfd09fc524a55c147e43b849437"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#2b2bf0c00c1c2e453321079f1059c670">operator=</a> (const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;file)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assign one <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> to another.  <a href="#2b2bf0c00c1c2e453321079f1059c670"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessor Methods</div></td></tr>
<tr><td colspan="2"><div class="groupText">Information on the uploaded file <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="classcgicc_1_1FormFile.html#43db72afd863f7014c07090cca31edfc">writeToStream</a> (std::ostream &amp;out) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write this file data to the specified stream.  <a href="#43db72afd863f7014c07090cca31edfc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#1861689211228052f1fe8c2d774d8f24">getName</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the name of the form element.  <a href="#1861689211228052f1fe8c2d774d8f24"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#9cf4dbf304c19db6498bc05d2f4dd72b">getFilename</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the basename of the file on the remote machine.  <a href="#9cf4dbf304c19db6498bc05d2f4dd72b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#a462cdd589a4582d88b5f9ea10134d69">getDataType</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the MIME type of the file data.  <a href="#a462cdd589a4582d88b5f9ea10134d69"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#58e8ddb21b9ab8147b1e96e521609ac7">getData</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the file data.  <a href="#58e8ddb21b9ab8147b1e96e521609ac7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string::size_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1FormFile.html#e0f65e63391167bac5e93f85e028d35d">getDataLength</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the length of the file data.  <a href="#e0f65e63391167bac5e93f85e028d35d"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class representing a file submitted via an HTML form. 
<p>
<a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> is an immutable class reprenting a file uploaded via the HTTP file upload mechanism. If you are going to use file upload in your CGI application, remember to set the ENCTYPE of the form to <code>multipart/form-data</code>. <div class="fragment"><pre class="fragment">
   &lt;form method="post" action="http://change_this_path/cgi-bin/upload.cgi" 
   enctype="multipart/form-data"&gt;
   </pre></div> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classcgicc_1_1FormEntry.html" title="Class representing a single HTML form entry.">FormEntry</a> </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00064">64</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="66bfe8969ce7a6c2c163ec9c10589243"></a><!-- doxytag: member="cgicc::FormFile::FormFile" ref="66bfe8969ce7a6c2c163ec9c10589243" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::FormFile::FormFile           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. 
<p>
Shouldn't be used. 
<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00079">79</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="45cc8bd4072bcb8c69a159764549f09d"></a><!-- doxytag: member="cgicc::FormFile::FormFile" ref="45cc8bd4072bcb8c69a159764549f09d" args="(const std::string &amp;name, const std::string &amp;filename, const std::string &amp;dataType, const std::string &amp;data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::FormFile::FormFile           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>dataType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a new <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a>. 
<p>
This is usually not called directly, but by <a class="el" href="classcgicc_1_1Cgicc.html" title="The main class of the GNU cgicc library.">Cgicc</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The <em>name</em> of the form element. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>The <em>filename</em> of the file on the remote machine. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dataType</em>&nbsp;</td><td>The MIME content type of the data, if specified, or 0. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>The file data. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="8183b86021d5a213ec5e8629d39736a4"></a><!-- doxytag: member="cgicc::FormFile::FormFile" ref="8183b86021d5a213ec5e8629d39736a4" args="(const FormFile &amp;file)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::FormFile::FormFile           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy constructor. 
<p>
Sets the name, filename, datatype, and data to those of <code>file</code> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>The <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> to copy. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00103">103</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="e502893097f7fe905e6cdf7335b60f63"></a><!-- doxytag: member="cgicc::FormFile::~FormFile" ref="e502893097f7fe905e6cdf7335b60f63" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::FormFile::~FormFile           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>
Delete this <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> object 
<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00112">112</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="58e8ddb21b9ab8147b1e96e521609ac7"></a><!-- doxytag: member="cgicc::FormFile::getData" ref="58e8ddb21b9ab8147b1e96e521609ac7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cgicc::FormFile::getData           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the file data. 
<p>
This returns the raw file data as a string <dl class="return" compact><dt><b>Returns:</b></dt><dd>The file data. </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00214">214</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="e0f65e63391167bac5e93f85e028d35d"></a><!-- doxytag: member="cgicc::FormFile::getDataLength" ref="e0f65e63391167bac5e93f85e028d35d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string::size_type cgicc::FormFile::getDataLength           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the length of the file data. 
<p>
The length of the file data is usually measured in bytes. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The length of the file data, in bytes. </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00224">224</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="a462cdd589a4582d88b5f9ea10134d69"></a><!-- doxytag: member="cgicc::FormFile::getDataType" ref="a462cdd589a4582d88b5f9ea10134d69" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cgicc::FormFile::getDataType           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the MIME type of the file data. 
<p>
This will be of the form <code>text/plain</code> or <code>image/jpeg</code> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The MIME type of the file data. </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00204">204</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="9cf4dbf304c19db6498bc05d2f4dd72b"></a><!-- doxytag: member="cgicc::FormFile::getFilename" ref="9cf4dbf304c19db6498bc05d2f4dd72b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cgicc::FormFile::getFilename           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the basename of the file on the remote machine. 
<p>
The filename is stripped of all leading directory information <dl class="return" compact><dt><b>Returns:</b></dt><dd>The basename of the file on the remote machine. </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00194">194</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="1861689211228052f1fe8c2d774d8f24"></a><!-- doxytag: member="cgicc::FormFile::getName" ref="1861689211228052f1fe8c2d774d8f24" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cgicc::FormFile::getName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the name of the form element. 
<p>
The name of the form element is specified in the HTML form that called the CGI application. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The name of the form element. </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00184">184</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="3e9fdbfd09fc524a55c147e43b849437"></a><!-- doxytag: member="cgicc::FormFile::operator!=" ref="3e9fdbfd09fc524a55c147e43b849437" args="(const FormFile &amp;file) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cgicc::FormFile::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compare two FormFiles for inequality. 
<p>
FormFiles are equal if they have the same filename. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>The <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> to compare to this one. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>false</code> if the two FormFiles are equal, <code>true</code> otherwise. </dd></dl>

<p>Definition at line <a class="el" href="FormFile_8h_source.html#l00139">139</a> of file <a class="el" href="FormFile_8h_source.html">FormFile.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="2b2bf0c00c1c2e453321079f1059c670"></a><!-- doxytag: member="cgicc::FormFile::operator=" ref="2b2bf0c00c1c2e453321079f1059c670" args="(const FormFile &amp;file)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcgicc_1_1FormFile.html">FormFile</a>&amp; cgicc::FormFile::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assign one <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> to another. 
<p>
Sets the name, filename, datatype, and data to those of <code>file</code> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>The <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> to copy. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to this. </dd></dl>

</div>
</div><p>
<a class="anchor" name="5ef6b07489ea03a25de9cf898f10fbc5"></a><!-- doxytag: member="cgicc::FormFile::operator==" ref="5ef6b07489ea03a25de9cf898f10fbc5" args="(const FormFile &amp;file) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cgicc::FormFile::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1FormFile.html">FormFile</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>file</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compare two FormFiles for equality. 
<p>
FormFiles are equal if they have the same filename. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>The <a class="el" href="classcgicc_1_1FormFile.html" title="Class representing a file submitted via an HTML form.">FormFile</a> to compare to this one. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the two FormFiles are equal, <code>false</code> otherwise. </dd></dl>

</div>
</div><p>
<a class="anchor" name="43db72afd863f7014c07090cca31edfc"></a><!-- doxytag: member="cgicc::FormFile::writeToStream" ref="43db72afd863f7014c07090cca31edfc" args="(std::ostream &amp;out) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cgicc::FormFile::writeToStream           </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>out</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Write this file data to the specified stream. 
<p>
This is useful for saving uploaded data to disk <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>out</em>&nbsp;</td><td>The ostream to which to write. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="FormFile_8h_source.html">FormFile.h</a></ul>
</div>
<!-- $Id: footer.html,v 1.7 2004/06/12 01:58:25 sbooth Exp $ -->

<hr>

<address><small>
<a href="http://www.cgicc.org">GNU cgicc</a> - A C++ class library for
writing CGI applications<br />
Copyright &copy; 1996 - 2004 
<a href="mailto:sboothATgnuDOTorg">Stephen F. Booth</a><br />
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front Cover Texts, and with no Back-Cover
Texts.<br />
Documentation generated Tue Jun 9 15:03:49 2009 for cgicc by
<a HREF="http://www.doxygen.org/index.html">doxygen</a> 1.5.9
</small></address>

</body>

</html>