Standard cgi server class.
More...
#include <libppbase/base_cgi/CGIStd.h>
List of all members.
Public Member Functions |
| CGIStd (const base::String &program) |
| Constructor.
|
void | exec (const base::String &qstr, const base::String &prog) |
| Executes another cgi.
|
void | flush () |
| Flushes the output stream.
|
const char * | getenv (const char *var, const char *defval=NULL) const |
| Gets an environment variable that was set by the http server.
|
void | out (const char *s, size_t len=base::String::npos) |
| Writes data (mostly html) to the output stream.
|
void | setOutput (std::ostream *os) |
| Sets the output stream.
|
Detailed Description
Standard cgi server class.
- Author:
- Christoph Schwarz
- Version:
- $Id: CGIStd.h 21 2010-09-05 04:18:17Z cschwarz1 $
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
| program | program name, may be full path |
Member Function Documentation
Executes another cgi.
- Parameters:
-
| qstr | the query string containing the input variables for the cgi |
| prog | the program path of the cgi |
const char* base_cgi::CGIStd::getenv |
( |
const char * |
var, |
|
|
const char * |
defval = NULL | |
|
) |
| | const [virtual] |
Gets an environment variable that was set by the http server.
- Parameters:
-
| var | the variable name |
| defval | value to return if the variable does not exist |
- Returns:
- the variable value
Implements base_cgi::CGI.
Writes data (mostly html) to the output stream.
- Parameters:
-
| s | data to write |
| len | number of bytes to write |
Implements base_cgi::CGI.
void base_cgi::CGIStd::setOutput |
( |
std::ostream * |
os |
) |
|
Sets the output stream.
- Parameters:
-
The documentation for this class was generated from the following file: