CgiDefs.h   CgiDefs.h 
skipping to change at line 44 skipping to change at line 44
# define CGICC_USE_NAMESPACES 1 # define CGICC_USE_NAMESPACES 1
// export library symbols // export library symbols
# ifdef CGICC_EXPORTS # ifdef CGICC_EXPORTS
# define CGICC_API __declspec(dllexport) # define CGICC_API __declspec(dllexport)
# else # else
# define CGICC_API __declspec(dllimport) # define CGICC_API __declspec(dllimport)
# endif # endif
# define HOST "Win32" # define HOST "Win32"
# define VERSION "3.1" # define VERSION "3.1.1"
#else #else
# define CGICC_USE_NAMESPACES 1 # define CGICC_USE_NAMESPACES 1
# define CGICC_API # define CGICC_API
#endif /* WIN32 */ #endif /* WIN32 */
// Handle namespaces // Handle namespaces
#if CGICC_USE_NAMESPACES #if CGICC_USE_NAMESPACES
# define CGICC_BEGIN_NAMESPACE namespace cgicc { # define CGICC_BEGIN_NAMESPACE namespace cgicc {
# define CGICC_END_NAMESPACE } # define CGICC_END_NAMESPACE }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 CgiEnvironment.h   CgiEnvironment.h 
/* -*-c++-*- */ /* -*-c++-*- */
/* /*
* $Id: CgiEnvironment.h,v 1.3 1999/08/16 17:40:04 sbooth Exp $ * $Id: CgiEnvironment.h,v 1.4 1999/08/20 20:51:43 sbooth Exp $
* *
* Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth * Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 31 skipping to change at line 31
#ifndef _CGIENVIRONMENT_H_ #ifndef _CGIENVIRONMENT_H_
#define _CGIENVIRONMENT_H_ 1 #define _CGIENVIRONMENT_H_ 1
#ifdef __GNUG__ #ifdef __GNUG__
# pragma interface # pragma interface
#endif #endif
#include <vector> #include <vector>
#include <string> #include <string>
#include <cstdlib>
#include "cgicc/CgiDefs.h" #include "cgicc/CgiDefs.h"
#include "cgicc/CgiUtils.h" #include "cgicc/CgiUtils.h"
#include "cgicc/HTTPHeaders.h" #include "cgicc/HTTPHeaders.h"
CGICC_BEGIN_NAMESPACE CGICC_BEGIN_NAMESPACE
#ifdef WIN32 #ifdef WIN32
template class CGICC_API STDNS vector<HTTPCookie>; template class CGICC_API STDNS vector<HTTPCookie>;
#endif #endif
skipping to change at line 267 skipping to change at line 268
/** /**
* Get the name of the browser used for this CGI request. * Get the name of the browser used for this CGI request.
* For example Mozilla/4.01 [en] (WinNT; U). * For example Mozilla/4.01 [en] (WinNT; U).
* @return The browser name * @return The browser name
*/ */
inline STDNS string inline STDNS string
getUserAgent() const getUserAgent() const
{ return fUserAgent; } { return fUserAgent; }
/** /**
* Determine whether this is a secure request (using https).
* @return true if this connection is via https
*/
inline bool
usingHTTPS() const
{ return (getenv("HTTPS") != 0); }
/**
* Get the redirect request. * Get the redirect request.
* This will only be valid if you are using this script as a script * This will only be valid if you are using this script as a script
* to use in place of the default server messages. * to use in place of the default server messages.
* @return The redirect request. * @return The redirect request.
*/ */
inline STDNS string inline STDNS string
getRedirectRequest() const getRedirectRequest() const
{ return fRedirectRequest; } { return fRedirectRequest; }
/** /**
 End of changes. 3 change blocks. 
1 lines changed or deleted 10 lines changed or added


 Cgicc.h   Cgicc.h 
/* -*-c++-*- */ /* -*-c++-*- */
/* /*
* $Id: Cgicc.h,v 1.4 1999/08/16 18:02:40 sbooth Exp $ * $Id: Cgicc.h,v 1.5 1999/09/30 17:38:19 sbooth Exp $
* *
* Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth * Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 63 skipping to change at line 63
CGICC_BEGIN_NAMESPACE CGICC_BEGIN_NAMESPACE
#ifdef WIN32 #ifdef WIN32
template class CGICC_API STDNS vector<FormEntry>; template class CGICC_API STDNS vector<FormEntry>;
template class CGICC_API STDNS vector<FormFile>; template class CGICC_API STDNS vector<FormFile>;
#endif #endif
class MultipartHeader; class MultipartHeader;
// ============================================================ // ============================================================
// Iterator typedefs
// ============================================================
typedef STDNS vector<FormEntry>::iterator form_iterator;
typedef STDNS vector<FormEntry>::const_iterator const_form_iterator;
typedef STDNS vector<FormFile>::iterator file_iterator;
typedef STDNS vector<FormFile>::const_iterator const_file_iterator;
// ============================================================
// Class Cgicc // Class Cgicc
// ============================================================ // ============================================================
/** /**
* Cgicc is the main class of the Cgicc library. * Cgicc is the main class of the Cgicc library.
* <P>Normally, you will instantiate an object of this type in * <P>Normally, you will instantiate an object of this type in
* <TT>main()</TT>:</P> * <TT>main()</TT>:</P>
* <PRE CLASS="code"> * <PRE CLASS="code">
* int * int
* main(int argc, char **argv) { * main(int argc, char **argv) {
* try { * try {
skipping to change at line 137 skipping to change at line 146
* @return True if the desired checkbox was checked, false if not * @return True if the desired checkbox was checked, false if not
*/ */
bool bool
queryCheckbox(const STDNS string& elementName) const; queryCheckbox(const STDNS string& elementName) const;
/** /**
* Find a radio button in a radio group, or a selected list item. * Find a radio button in a radio group, or a selected list item.
* @param name The name of the radio button or list item to find. * @param name The name of the radio button or list item to find.
* @return An iterator referring to the desired element, if found. * @return An iterator referring to the desired element, if found.
*/ */
inline STDNS vector<FormEntry>::iterator inline form_iterator
operator[] (const STDNS string& name) operator[] (const STDNS string& name)
{ return getElement(name); } { return getElement(name); }
/** /**
* Find a radio button in a radio group, or a selected list item. * Find a radio button in a radio group, or a selected list item.
* @param name The name of the radio button or list item to find. * @param name The name of the radio button or list item to find.
* @return An iterator referring to the desired element, if found. * @return An iterator referring to the desired element, if found.
*/ */
inline STDNS vector<FormEntry>::const_iterator inline const_form_iterator
operator[] (const STDNS string& name) const operator[] (const STDNS string& name) const
{ return getElement(name); } { return getElement(name); }
/** /**
* Find a radio button in a radio group, or a selected list item. * Find a radio button in a radio group, or a selected list item.
* @param name The name of the radio button or list item to find. * @param name The name of the radio button or list item to find.
* @return An iterator referring to the desired element, if found. * @return An iterator referring to the desired element, if found.
*/ */
STDNS vector<FormEntry>::iterator form_iterator
getElement(const STDNS string& name); getElement(const STDNS string& name);
/** /**
* Find a radio button in a radio group, or a selected list item. * Find a radio button in a radio group, or a selected list item.
* @param name The name of the radio button or list item to find. * @param name The name of the radio button or list item to find.
* @return A const_iterator referring to the desired element, if found. * @return A const_iterator referring to the desired element, if found.
*/ */
STDNS vector<FormEntry>::const_iterator const_form_iterator
getElement(const STDNS string& name) const; getElement(const STDNS string& name) const;
/** /**
* Find multiple checkboxes in a group or selected items in a list. * Find multiple checkboxes in a group or selected items in a list.
* @param name The name of the checkboxes or list to find. * @param name The name of the checkboxes or list to find.
* @param result A vector to hold the result. * @param result A vector to hold the result.
* @return true if any elements were found, false if not. * @return true if any elements were found, false if not.
*/ */
bool bool
getElement(const STDNS string& name, getElement(const STDNS string& name,
STDNS vector<FormEntry>& result) const; STDNS vector<FormEntry>& result) const;
/** /**
* Find a radio button in a radio group, or a selected list item. * Find a radio button in a radio group, or a selected list item.
* @param value The value of the radio button or list item to find. * @param value The value of the radio button or list item to find.
* @return An iterator referring to the desired element, if found. * @return An iterator referring to the desired element, if found.
*/ */
STDNS vector<FormEntry>::iterator form_iterator
getElementByValue(const STDNS string& value); getElementByValue(const STDNS string& value);
/** /**
* Find a radio button in a radio group, or a selected list item. * Find a radio button in a radio group, or a selected list item.
* @param value The value of the radio button or list item to find. * @param value The value of the radio button or list item to find.
* @return A const_iterator referring to the desired element, if found. * @return A const_iterator referring to the desired element, if found.
*/ */
STDNS vector<FormEntry>::const_iterator const_form_iterator
getElementByValue(const STDNS string& value) const; getElementByValue(const STDNS string& value) const;
/** /**
* Find multiple checkboxes in a group or selected items in a list. * Find multiple checkboxes in a group or selected items in a list.
* @param value The value of the checkboxes or list to find. * @param value The value of the checkboxes or list to find.
* @param result A vector to hold the result. * @param result A vector to hold the result.
* @return true if any elements were found, false if not. * @return true if any elements were found, false if not.
*/ */
bool bool
getElementByValue(const STDNS string& value, getElementByValue(const STDNS string& value,
skipping to change at line 223 skipping to change at line 232
*/ */
inline const STDNS vector<FormEntry>& inline const STDNS vector<FormEntry>&
getElements() const getElements() const
{ return fFormData; } { return fFormData; }
/** /**
* Find an uploaded file. * Find an uploaded file.
* @param name The name of the file. * @param name The name of the file.
* @return An iterator referring to the desired file, if found. * @return An iterator referring to the desired file, if found.
*/ */
STDNS vector<FormFile>::iterator file_iterator
getFile(const STDNS string& name); getFile(const STDNS string& name);
/** /**
* Find an uploaded file. * Find an uploaded file.
* @param name The name of the file. * @param name The name of the file.
* @return An iterator referring to the desired file, if found. * @return An iterator referring to the desired file, if found.
*/ */
STDNS vector<FormFile>::const_iterator const_file_iterator
getFile(const STDNS string& name) const; getFile(const STDNS string& name) const;
/** /**
* Get all uploaded files. * Get all uploaded files.
* @return A vector containing all the uploaded files. * @return A vector containing all the uploaded files.
*/ */
inline const STDNS vector<FormFile>& inline const STDNS vector<FormFile>&
getFiles() const getFiles() const
{ return fFormFiles; } { return fFormFiles; }
 End of changes. 10 change blocks. 
9 lines changed or deleted 18 lines changed or added


 HTMLClasses.h   HTMLClasses.h 
/* -*-c++-*- */ /* -*-c++-*- */
/* /*
* $Id: HTMLClasses.h,v 1.5 1999/08/17 17:16:07 sbooth Exp $ * $Id: HTMLClasses.h,v 1.6 1999/09/22 22:30:11 sbooth Exp $
* *
* Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth * Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 120 skipping to change at line 120
BOOLEAN_ELEMENT (tbody, "TBODY"); // table body section BOOLEAN_ELEMENT (tbody, "TBODY"); // table body section
BOOLEAN_ELEMENT (colgroup, "COLGROUP"); // vertical section BOOLEAN_ELEMENT (colgroup, "COLGROUP"); // vertical section
ATOMIC_ELEMENT (col, "COL"); // column attributes ATOMIC_ELEMENT (col, "COL"); // column attributes
BOOLEAN_ELEMENT (tr, "TR"); // table row BOOLEAN_ELEMENT (tr, "TR"); // table row
BOOLEAN_ELEMENT (th, "TH"); // table header cell BOOLEAN_ELEMENT (th, "TH"); // table header cell
BOOLEAN_ELEMENT (td, "TD"); // table data cell BOOLEAN_ELEMENT (td, "TD"); // table data cell
// links // links
BOOLEAN_ELEMENT (a, "A"); // anchor BOOLEAN_ELEMENT (a, "A"); // anchor
#if CGICC_USE_NAMESPACES
ATOMIC_ELEMENT (link, "LINK"); // document link ATOMIC_ELEMENT (link, "LINK"); // document link
#else
ATOMIC_ELEMENT (link_, "LINK"); // document link
#endif
ATOMIC_ELEMENT (base, "BASE"); // path information ATOMIC_ELEMENT (base, "BASE"); // path information
// objects // objects
ATOMIC_ELEMENT (img, "IMG"); // inline image ATOMIC_ELEMENT (img, "IMG"); // inline image
BOOLEAN_ELEMENT (object, "OBJECT"); // generic object BOOLEAN_ELEMENT (object, "OBJECT"); // generic object
ATOMIC_ELEMENT (param, "PARAM"); // object parameters ATOMIC_ELEMENT (param, "PARAM"); // object parameters
BOOLEAN_ELEMENT (map, "MAP"); // client image map BOOLEAN_ELEMENT (map, "MAP"); // client image map
ATOMIC_ELEMENT (area, "AREA"); // image map region ATOMIC_ELEMENT (area, "AREA"); // image map region
ATOMIC_ELEMENT (hr, "HR"); // horizontal rule ATOMIC_ELEMENT (hr, "HR"); // horizontal rule
 End of changes. 3 change blocks. 
1 lines changed or deleted 5 lines changed or added


 MStreamable.h   MStreamable.h 
/* -*-c++-*- */ /* -*-c++-*- */
/* /*
* $Id: MStreamable.h,v 1.3 1999/08/17 17:34:19 sbooth Exp $ * $Id: MStreamable.h,v 1.4 1999/08/20 20:51:32 sbooth Exp $
* *
* Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth * Copyright (C) 1996, 1997, 1998, 1999 Stephen F. Booth
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 56 skipping to change at line 56
* the << operator. * the << operator.
* Written in the spirit of a Java interface. * Written in the spirit of a Java interface.
*/ */
class CGICC_API MStreamable class CGICC_API MStreamable
{ {
friend CGICC_API STDNS ostream& friend CGICC_API STDNS ostream&
operator<<(STDNS ostream& out, const MStreamable& obj); operator<<(STDNS ostream& out, const MStreamable& obj);
public: public:
/** Contructor. Empty */
inline MStreamable()
{}
/** Destructor. Empty */
inline virtual ~MStreamable()
{}
/** /**
* Write this object to a stream. Subclasses must implement this functio n. * Write this object to a stream. Subclasses must implement this functio n.
* @param out The ostream to which to write. * @param out The ostream to which to write.
*/ */
virtual void virtual void
render(STDNS ostream& out) const = 0; render(STDNS ostream& out) const = 0;
}; };
CGICC_END_NAMESPACE CGICC_END_NAMESPACE
 End of changes. 2 change blocks. 
1 lines changed or deleted 9 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/