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

dsCGI Class Reference

#include <dsCGI.h>

List of all members.

Public Methods

 dsCGI ()
 dsCGI (const char *src)
 ~dsCGI ()
void parseQueryString (const char *query_string)
void parseCookie (const char *cookie)
void content_header (const char *mime="text/html")
const char * postData ()
char * seek (const char *key)
char * seek_cookie (const char *key)
char * getstring (const char *key)
long getlong (const char *key)
char * getstring (const char *key, char *defval)
long getlong (const char *key, long defval)
int operator! ()
const char * pathInfo ()
const char * scriptName ()


Detailed Description

CGI support, including interface to http cookies

This class provide method for common CGI operation and shell to some of CGI related environment variables

revise for memory leaks intreface cleanup


Constructor & Destructor Documentation

dsCGI::dsCGI  
 

dsCGI::dsCGI const char *    src
 

dsCGI::~dsCGI  
 


Member Function Documentation

void dsCGI::content_header const char *    mime = "text/html"
 

Write common http header, including Expire

Parameters:
mime mime type

long dsCGI::getlong const char *    key,
long    defval
[inline]
 

long dsCGI::getlong const char *    key [inline]
 

char * dsCGI::getstring const char *    key,
char *    defval
[inline]
 

Find a key, return found value. if key not defined return default value search query string first, then search cookie

Parameters:
key key to find
defval default value
Returns:
default value

char * dsCGI::getstring const char *    key [inline]
 

Find a key, return found value, search query string first, then search cookie

Parameters:
key key to find
Exceptions:
CGIException thrown if key not defined

int dsCGI::operator!   [inline]
 

Returns:
FALSE if program doesn't run as CGI

void dsCGI::parseCookie const char *    cookie
 

void dsCGI::parseQueryString const char *    query_string
 

const char * dsCGI::pathInfo   [inline]
 

Shell for PATH_INFO environment variable.

Returns:
pointer to value of environment variable
Exceptions:
cgiException if PATH_INFO not defined

const char * dsCGI::postData   [inline]
 

Accessor to internal buffer containing post_data post data doesn't paresed by default - it should be done explicitly

const char * dsCGI::scriptName   [inline]
 

Shell for SCRIPT_NAME environment variable.

Returns:
pointer to value of environment variable
Exceptions:
cgiException if SCRIPT_NAME not defined

char * dsCGI::seek const char *    key [inline]
 

Find a key

Parameters:
key key to find
Returns:
pointer to value or NULL if key not defined

char * dsCGI::seek_cookie const char *    key [inline]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:26:59 2005 for libdms4 by doxygen1.3-rc2