CgiInput.h

Go to the documentation of this file.
00001 /* -*-mode:c++; c-file-style: "gnu";-*- */
00002 /*
00003  *  $Id: CgiInput_8h-source.html,v 1.3 2008/01/19 21:53:40 sebdiaz Exp $
00004  *
00005  *  Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
00006  *                       2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
00007  *  Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
00008  *
00009  *  This library is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU Lesser General Public
00011  *  License as published by the Free Software Foundation; either
00012  *  version 3 of the License, or (at your option) any later version.
00013  *
00014  *  This library is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  *  Lesser General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU Lesser General Public
00020  *  License along with this library; if not, write to the Free Software
00021  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 
00022  */
00023 
00024 #ifndef _CGIINPUT_H_
00025 #define _CGIINPUT_H_ 1
00026 
00027 #ifdef __GNUG__
00028 #  pragma interface
00029 #endif
00030 
00038 #include <string>
00039 
00040 #include "cgicc/CgiDefs.h"
00041 
00042 namespace cgicc {
00043 
00044   // ============================================================
00045   // Class CgiInput
00046   // ============================================================
00047   
00058   class CGICC_API CgiInput
00059   {
00060   public:
00061     
00062     // ============================================================
00063     
00066     
00072     inline
00073     CgiInput()
00074     {}
00075     
00083     inline
00084     CgiInput(const CgiInput& input)
00085     { operator=(input); }
00086     
00092     virtual ~CgiInput();
00094     
00095     
00096     // ============================================================
00097     
00100     
00108     inline bool 
00109     operator== (const CgiInput& /*input*/)              const
00110     { return true; }
00111     
00119     inline bool
00120     operator!= (const CgiInput& input)                  const
00121     { return ! operator==(input); }
00122     
00130     inline CgiInput& 
00131     operator= (const CgiInput& /*input*/)
00132     { return *this; }
00134     
00135     // ============================================================
00136     
00139     
00148     virtual size_t read(char *data, size_t length);
00149     
00158     virtual std::string getenv(const char *varName);
00160   };
00161   
00162 } // namespace cgicc
00163 
00164 #endif /* ! _CGIINPUT_H_ */

GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2004 Stephen F. Booth
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.
Documentation generated Sat Jan 19 21:15:58 2008 for cgicc by doxygen 1.5.1