sptk::CCGIApplication Class Reference
[Utility Classes]
Supports a classic CGI application, decodes input data stream etc.
More...
#include <CCGI.h>
List of all members.
Detailed Description
Supports a classic CGI application, decodes input data stream etc.
Member Function Documentation
| void sptk::CCGIApplication::addHiddenInput |
( |
const char * |
name, |
|
|
const char * |
value = "", |
|
|
const char * |
attr = "" | |
|
) |
| | |
Inserts hidden input on the page.
- Parameters:
-
| name | const char *, hidden input name |
| value | const char *, optional hidden input value |
| attr | const char *, optional hidden input attributes |
| void sptk::CCGIApplication::addTextInput |
( |
const char * |
name, |
|
|
const char * |
value = "", |
|
|
const char * |
attr = "" | |
|
) |
| | |
Inserts text input on the page.
- Parameters:
-
| name | const char *, input name |
| value | const char *, optional input value |
| attr | const char *, optional input attributes |
| bool sptk::CCGIApplication::begin |
( |
HTML_TAGS |
tag, |
|
|
const char * |
params = NULL | |
|
) |
| | |
Begins the standard HTML tag. See HTML_TAGS for the tag list.
- Returns:
- true if anything was printed
- Parameters:
-
| tag | HTML_TAGS, HTML tag |
| params | const char *, extra parameters |
| void sptk::CCGIApplication::beginPage |
( |
const char * |
title, |
|
|
const char * |
bodyParams = "" | |
|
) |
| | |
Begins HTML page.
- Parameters:
-
| title | const char *, page title |
| bodyParams | const char *, optional body attributes |
| FILE* sptk::CCGIApplication::createHtmlCopyFile |
( |
const char * |
fname |
) |
|
Starts duplicating the HTML output to the file.
- Parameters:
-
| fname | const char *, output file name |
- Returns:
- the output file descriptor
| const char* sptk::CCGIApplication::debugInputFileName |
( |
|
) |
const [inline] |
Reports the debug file name that contains the input data as it is received by the CGI application.
| bool sptk::CCGIApplication::end |
( |
HTML_TAGS |
tag |
) |
|
Closes the standard HTML tag. See HTML_TAGS for the tag list.
- Parameters:
-
| tag | HTML_TAGS, extra parameters |
- Returns:
- true if anything was printed
| bool sptk::CCGIApplication::insertCRLF |
( |
|
) |
[protected] |
Prints CRLF into output
- Returns:
- true if anything was printed
| bool sptk::CCGIApplication::printString |
( |
const char * |
htmlCode |
) |
|
Prints the htmlCode to the output files
- Parameters:
-
| htmlCode | const char *, the HTML code to print |
- Returns:
- true if anything was printed
| void sptk::CCGIApplication::startTable |
( |
const char * |
params = NULL |
) |
|
Begins the TABLE HTML tag.
- Parameters:
-
| params | const char *, optional table attributes |
| void sptk::CCGIApplication::tableCell |
( |
const char * |
cellData, |
|
|
const char * |
params = NULL | |
|
) |
| | |
Defines the table cell.
- Parameters:
-
| cellData | const char *, cell text |
| params | const char *, optional cells attributes |
| void sptk::CCGIApplication::tableHeaderCell |
( |
const char * |
headerCellData, |
|
|
const char * |
params = NULL | |
|
) |
| | |
Defines the table header cell HTML tag.
- Parameters:
-
| headerCellData | const char *, header cell text |
| params | const char *, optional cells attributes |
Member Data Documentation
The map of input parameter names and values. Contains the information sent to the application from another page form through GET or POST metods.
Flag, true if the application should actually print something and not just create the HTML file for future references
The documentation for this class was generated from the following file: