CgiInput.h Source File

Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members Related Pages

# CgiInput.h

Go to the documentation of this file.

    00001 /* -*-c++-*- */
    00002 /*
    00003  *  $Id: CgiInput.h,v 1.2 2002/03/03 17:39:52 sbooth Exp $
    00004  *
    00005  *  Copyright (C) 1996 - 2002 Stephen F. Booth
    00006  *
    00007  *  This library is free software; you can redistribute it and/or
    00008  *  modify it under the terms of the GNU Lesser General Public
    00009  *  License as published by the Free Software Foundation; either
    00010  *  version 2.1 of the License, or (at your option) any later version.
    00011  *
    00012  *  This library is distributed in the hope that it will be useful,
    00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  *  Lesser General Public License for more details.
    00016  *
    00017  *  You should have received a copy of the GNU Lesser General Public
    00018  *  License along with this library; if not, write to the Free Software
    00019  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00020  */
    00021
    00022 #ifndef _CGIINPUT_H_
    00023 #define _CGIINPUT_H_ 1
    00024
    00025 #ifdef __GNUG__
    00026 #  pragma interface
    00027 #endif
    00028
    00036 #include <string>
    00037
    00038 #include "cgicc/CgiDefs.h"
    00039
    00040 CGICC_BEGIN_NAMESPACE
    00041
    00042 // ============================================================
    00043 // Class CgiInput
    00044 // ============================================================
    00045
    00056 class CGICC_API CgiInput
    00057 {
    00058  public:
    00059
    00060   // ============================================================
    00061
    00064
    00070   inline
    00071   CgiInput()
    00072   {}
    00073
    00081   inline
    00082   CgiInput(const CgiInput& input)
    00083   { operator=(input); }
    00084
    00090   virtual ~CgiInput();
    00092
    00093
    00094   // ============================================================
    00095
    00098
    00106   inline bool
    00107   operator== (const CgiInput& /*input*/)                const
    00108     { return true; }
    00109
    00117   inline bool
    00118   operator!= (const CgiInput& input)                    const
    00119     { return ! operator==(input); }
    00120
    00128   inline CgiInput&
    00129   operator= (const CgiInput& /*input*/)
    00130   { return *this; }
    00132
    00133   // ============================================================
    00134
    00137
    00146   virtual size_t read(char *data, size_t length);
    00147
    00156   virtual STDNS string getenv(const char *varName);
    00158 };
    00159
    00160 CGICC_END_NAMESPACE
    00161
    00162 #endif /* ! _CGIINPUT_H_ */