#include <cgicc/Cgicc.h>
Public Methods | |
Constructor and Destructor | |
Cgicc (CgiInput *input=0) | |
Constructor. More... | |
~Cgicc () | |
Destructor. More... | |
Library Information | |
Information on this installation of cgicc | |
const char * | getCompileDate () const |
Get the date on which this library was compiled. More... | |
const char * | getCompileTime () const |
Get the time at which this library was compiled. More... | |
const char * | getVersion () const |
Get the version number of cgicc. More... | |
const char * | getHost () const |
Get the platform for which Cgicc was configured. More... | |
Form Element Access | |
Information on submitted form elements | |
bool | queryCheckbox (const std::string &elementName) const |
Query whether a checkbox is checked. More... | |
form_iterator | operator[] (const std::string &name) |
Find a radio button in a radio group, or a selected list item. More... | |
const_form_iterator | operator[] (const std::string &name) const |
Find a radio button in a radio group, or a selected list item. More... | |
form_iterator | getElement (const std::string &name) |
Find a radio button in a radio group, or a selected list item. More... | |
const_form_iterator | getElement (const std::string &name) const |
Find a radio button in a radio group, or a selected list item. More... | |
bool | getElement (const std::string &name, std::vector< FormEntry > &result) const |
Find multiple checkboxes in a group or selected items in a list. More... | |
form_iterator | getElementByValue (const std::string &value) |
Find a radio button in a radio group, or a selected list item. More... | |
const_form_iterator | getElementByValue (const std::string &value) const |
Find a radio button in a radio group, or a selected list item. More... | |
bool | getElementByValue (const std::string &value, std::vector< FormEntry > &result) const |
Find multiple checkboxes in a group or selected items in a list. More... | |
const std::vector< FormEntry > & | operator * () const |
Get all the submitted form entries, excluding files. More... | |
const std::vector< FormEntry > & | getElements () const |
Get all the submitted form elements, excluding files. More... | |
Uploaded File Access | |
file_iterator | getFile (const std::string &name) |
Find an uploaded file. More... | |
const_file_iterator | getFile (const std::string &name) const |
Find an uploaded file. More... | |
const std::vector< FormFile > & | getFiles () const |
Environment Access | |
const CgiEnvironment & | getEnvironment () const |
Save and Restore | |
void | save (const std::string &filename) const |
Save the current CGI environment to a file. More... | |
void | restore (const std::string &filename) |
Restore from a previously-saved CGI environment. More... |
Cgicc is used to retrieve information on specific HTML form elements (such as checkboxes, radio buttons, and text fields), on uploaded files, and to save, restore, and retrieve information on the CGI environment.
Normally, you will instantiate an object of this type in main()
:
int main(int argc, char **argv) { try { cgicc::Cgicc cgi; // do something with cgi } catch(const exception& e) { //handle the error } }
Definition at line 101 of file Cgicc.h.
|
Constructor.
If you are using cgicc with FastCGI, you will need to pass a
|
|
Destructor.
Delete this Cgicc object |
|
Get the date on which this library was compiled.
This is a string of the form
|
|
Get the time at which this library was compiled.
This is a string of the form
|
|
Find multiple checkboxes in a group or selected items in a list.
|
|
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.
|
|
Find multiple checkboxes in a group or selected items in a list.
|
|
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.
|
|
Get all the submitted form elements, excluding files.
Definition at line 281 of file Cgicc.h. References cgicc::const_file_iterator, and cgicc::file_iterator. |
|
Get the current runtime environment.
|
|
Find an uploaded file.
|
|
Find an uploaded file.
|
|
Get all uploaded files.
|
|
Get the platform for which Cgicc was configured.
The host is a string of the form |
|
Get the version number of cgicc.
The version number is a string of the form
|
|
Get all the submitted form entries, excluding files.
|
|
Find a radio button in a radio group, or a selected list item.
Definition at line 205 of file Cgicc.h. References cgicc::const_form_iterator, and cgicc::form_iterator. |
|
Find a radio button in a radio group, or a selected list item.
Definition at line 195 of file Cgicc.h. References cgicc::const_form_iterator. |
|
Query whether a checkbox is checked.
|
|
Restore from a previously-saved CGI environment.
This is useful for debugging CGI applications.
|
|
Save the current CGI environment to a file.
This is useful for debugging CGI applications.
|