#ifndef CGIHEADER #define CGIHEADER #include using namespace std; //************************************************************************** // Member Function: setCGIDebug // Purpose: If called, causes getQueryString() to return the value passed // to this function instead of a value obtained via the normal // GET/POST data passing. Use this function to debug your script // purely within Visual Studio. // The string provided should be an encoded parameter string, // such as "name=John+Smith&rsvp=yes" //************************************************************************** void setCGIDebug(string str); //************************************************************************** // Member Function: getThisPath // Purpose: Returns a string representing the current relative directory // of the running script. //************************************************************************** string getThisPath(); //************************************************************************** // Member Function: xhtmlHeaders // Purpose: Writes standard xhtml header information to standard cout (cout) //************************************************************************** void xhtmlHeaders(string pageTitle); //************************************************************************** // Member Function: xhtmlHeaders // Purpose: Writes standard xhtml footer information to standard cout (cout) //************************************************************************** void xhtmlFooters(); //************************************************************************** // Member Function: getQueryString // Purpose: Determines and returns the query string generated from a form. //************************************************************************** string getQueryString(); //************************************************************************** // Member Function: getParam // Purpose: Parses qString for the string parName. If found, it returns // the value associated with the name. Otherwise it returns the empty // string. //************************************************************************** string getParam(string qString, string parName); //************************************************************************** // Support Function: hexAlphaToInt // Purpose: To return the Hexadecimal value represented by the parameter 'c'. // If 'c' does not represent a legal value, -1 is returned to indicate // an error. //************************************************************************** int hexAlphaToInt(char c); #endif