Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 6ffce823058df614fd928704460ec612 > files > 51

cgicc-3.2.1-2mdk.ppc.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.3 2002/03/09 18:30:37 sbooth Exp $ -->
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>FormFile.h Source File</title>
  <link rev="made" href="mailto:bug-cgicc@gnu.org" />
  <link href="cgicc-doc.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!-- Generated by Doxygen 1.2.13.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>FormFile.h</h1><a href="FormFile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/* -*-c++-*- */</font>
00002 <font class="comment">/*</font>
00003 <font class="comment"> *  $Id: FormFile.h,v 1.6 2002/03/06 02:49:55 sbooth Exp $</font>
00004 <font class="comment"> *</font>
00005 <font class="comment"> *  Copyright (C) 1996 - 2002 Stephen F. Booth</font>
00006 <font class="comment"> *</font>
00007 <font class="comment"> *  This library is free software; you can redistribute it and/or</font>
00008 <font class="comment"> *  modify it under the terms of the GNU Lesser General Public</font>
00009 <font class="comment"> *  License as published by the Free Software Foundation; either</font>
00010 <font class="comment"> *  version 2.1 of the License, or (at your option) any later version.</font>
00011 <font class="comment"> *</font>
00012 <font class="comment"> *  This library is distributed in the hope that it will be useful,</font>
00013 <font class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00014 <font class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>
00015 <font class="comment"> *  Lesser General Public License for more details.</font>
00016 <font class="comment"> *</font>
00017 <font class="comment"> *  You should have received a copy of the GNU Lesser General Public</font>
00018 <font class="comment"> *  License along with this library; if not, write to the Free Software</font>
00019 <font class="comment"> *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>
00020 <font class="comment"> */</font>
00021 
00022 <font class="preprocessor">#ifndef _FORMFILE_H_</font>
00023 <font class="preprocessor"></font><font class="preprocessor">#define _FORMFILE_H_ 1</font>
00024 <font class="preprocessor"></font>
00025 <font class="preprocessor">#ifdef __GNUG__</font>
00026 <font class="preprocessor"></font><font class="preprocessor">#  pragma interface</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00028 <font class="preprocessor"></font>
00038 <font class="preprocessor">#include &lt;iostream&gt;</font>
00039 <font class="preprocessor">#include &lt;string&gt;</font>
00040 
00041 <font class="preprocessor">#include "<a class="code" href="CgiDefs_8h.html">cgicc/CgiDefs.h</a>"</font>
00042 
00043 CGICC_BEGIN_NAMESPACE
00044 
00045 <font class="comment">// ============================================================</font>
00046 <font class="comment">// Class FormFile</font>
00047 <font class="comment">// ============================================================</font>
00048 
<a name="l00062"></a><a class="code" href="classcgicc_1_1FormFile.html">00062</a> <font class="keyword">class </font>CGICC_API FormFile
00063 {
00064 <font class="keyword">public</font>:
00065   
00066   <font class="comment">// ============================================================</font>
00067 
00070   
00076   <font class="keyword">inline</font>
<a name="l00077"></a><a class="code" href="classcgicc_1_1FormFile.html#z19_0">00077</a>   FormFile()
00078     {}
00079   
00089   FormFile(<font class="keyword">const</font> STDNS string&amp; name, 
00090            <font class="keyword">const</font> STDNS string&amp; filename, 
00091            <font class="keyword">const</font> STDNS string&amp; dataType, 
00092            <font class="keyword">const</font> STDNS string&amp; data);
00093   
00100   <font class="keyword">inline</font>
<a name="l00101"></a><a class="code" href="classcgicc_1_1FormFile.html#z19_2">00101</a>   FormFile(<font class="keyword">const</font> FormFile&amp; file)
00102     { operator=(file); }
00103   
00109   <font class="keyword">inline</font>
<a name="l00110"></a><a class="code" href="classcgicc_1_1FormFile.html#z19_3">00110</a>   ~FormFile()
00111     {}
00113   
00114   <font class="comment">// ============================================================</font>
00115 
00118 
00126   <font class="keywordtype">bool</font> 
00127   operator== (<font class="keyword">const</font> FormFile&amp; file)                     <font class="keyword">const</font>;
00128   
00136   <font class="keyword">inline</font> <font class="keywordtype">bool</font> 
<a name="l00137"></a><a class="code" href="classcgicc_1_1FormFile.html#z20_1">00137</a>   operator!= (<font class="keyword">const</font> FormFile&amp; file)                     <font class="keyword">const</font>
00138     { <font class="keywordflow">return</font> ! operator==(file); }
00139   
00140 <font class="preprocessor">#ifdef WIN32</font>
00141 <font class="preprocessor"></font>  <font class="comment">/* Dummy operator for MSVC++ */</font>
00142   <font class="keyword">inline</font> <font class="keywordtype">bool</font>
00143   operator&lt; (<font class="keyword">const</font> FormFile&amp; file)                      <font class="keyword">const</font>
00144   { <font class="keywordflow">return</font> <font class="keyword">false</font>; }
00145 <font class="preprocessor">#endif</font>
00146 <font class="preprocessor"></font>
00154   FormFile&amp; 
00155   operator= (<font class="keyword">const</font> FormFile&amp; file);
00157   
00158   <font class="comment">// ============================================================</font>
00159 
00164 
00171   <font class="keywordtype">void</font> 
00172   writeToStream(STDNS ostream&amp; out)                     <font class="keyword">const</font>;
00173 
00181   <font class="keyword">inline</font> STDNS string
<a name="l00182"></a><a class="code" href="classcgicc_1_1FormFile.html#z21_1">00182</a>   getName()                                             <font class="keyword">const</font>
00183     { <font class="keywordflow">return</font> fName; }
00184   
00191   <font class="keyword">inline</font> STDNS string
<a name="l00192"></a><a class="code" href="classcgicc_1_1FormFile.html#z21_2">00192</a>   getFilename()                                         <font class="keyword">const</font>
00193     { <font class="keywordflow">return</font> fFilename; }
00194 
00201   <font class="keyword">inline</font> STDNS string 
<a name="l00202"></a><a class="code" href="classcgicc_1_1FormFile.html#z21_3">00202</a>   getDataType()                                         <font class="keyword">const</font>
00203     { <font class="keywordflow">return</font> fDataType; }
00204     
00211   <font class="keyword">inline</font> STDNS string 
<a name="l00212"></a><a class="code" href="classcgicc_1_1FormFile.html#z21_4">00212</a>   getData()                                     <font class="keyword">const</font>
00213     { <font class="keywordflow">return</font> fData; }
00214   
00221   <font class="keyword">inline</font> STDNS string::size_type
<a name="l00222"></a><a class="code" href="classcgicc_1_1FormFile.html#z21_5">00222</a>   getDataLength()                               <font class="keyword">const</font>
00223     { <font class="keywordflow">return</font> fData.length(); }
00225 
00226 <font class="keyword">private</font>:
00227   STDNS string  fName;
00228   STDNS string  fFilename;
00229   STDNS string  fDataType;
00230   STDNS string  fData;
00231 };
00232 
00233 CGICC_END_NAMESPACE
00234 
00235 <font class="preprocessor">#endif </font><font class="comment">/* ! _FORMFILE_H_ */</font>
</pre></div><!-- $Id: footer.html,v 1.3 2002/03/09 18:30:37 sbooth Exp $ -->

<hr>

<address><small>
GNU cgicc - A C++ class library for writing CGI applications<br />
Copyright &copy; 1996 - 2002 
<a href="mailto:sbooth@gnu.org">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 Sun Mar 17 16:40:57 2002 for cgicc by
<a HREF="http://www.doxygen.org/index.html">doxygen</a> 1.2.13.1
</small></address>

</body>

</html>