55 template class CGICC_API std::vector<FormEntry>;
56 template class CGICC_API std::vector<FormFile>;
59 class MultipartHeader;
130 : fEnvironment(cgi.fEnvironment)
155 {
return this->fEnvironment == cgi.fEnvironment; }
166 {
return ! operator==(cgi); }
171 operator< (
const Cgicc& cgi)
const
253 operator[] (
const std::string& name)
254 {
return getElement(name); }
263 operator() (
const std::string& name)
const;
272 operator[] (
const std::string& name)
const
273 {
return getElement(name); }
302 std::vector<FormEntry>& result)
const;
331 std::vector<FormEntry>& result)
const;
338 inline const std::vector<FormEntry>&
340 {
return fFormData; }
347 inline const std::vector<FormEntry>&
349 {
return fFormData; }
379 inline const std::vector<FormFile>&
381 {
return fFormFiles; }
395 {
return fEnvironment;}
410 save(
const std::string& filename)
const;
424 std::vector<FormEntry> fFormData;
425 std::vector<FormFile> fFormFiles;
429 parseFormInput(
const std::string& data,
const std::string& content_type =
"application/x-www-form-urlencoded");
433 parseHeader(
const std::string& data);
437 parsePair(
const std::string& data);
441 parseMIME(
const std::string& data);
445 findEntries(
const std::string& param,
447 std::vector<FormEntry>& result)
const;
Platform and operating system specific macro definitions.
Class encapsulating the CGI runtime environment.
Class representing a single HTML form entry.
Class encapsulating the CGI runtime environment.
The main class of the GNU cgicc library.
void restore(const std::string &filename)
Restore from a previously-saved CGI environment.
const char * getCompileDate() const
Get the date on which this library was compiled.
const CgiEnvironment & getEnvironment() const
Cgicc(const Cgicc &cgi)
Copy constructor.
const_form_iterator getElementByValue(const std::string &value) const
Find a radio button in a radio group, or a selected list item.
bool queryCheckbox(const std::string &elementName) const
Query whether a checkbox is checked.
const char * getVersion() const
Get the version number of cgicc.
file_iterator getFile(const std::string &name)
Find an uploaded file.
bool getElement(const std::string &name, std::vector< FormEntry > &result) const
Find multiple checkboxes in a group or selected items in a list.
bool getElementByValue(const std::string &value, std::vector< FormEntry > &result) const
Find multiple checkboxes in a group or selected items in a list.
Cgicc(CgiInput *input=0)
Constructor.
const_form_iterator getElement(const std::string &name) const
Find a radio button in a radio group, or a selected list item.
const char * getCompileTime() const
Get the time at which this library was compiled.
const char * getHost() const
Get the platform for which Cgicc was configured.
void save(const std::string &filename) const
Save the current CGI environment to a file.
const_file_iterator getFile(const std::string &name) const
Find an uploaded file.
const std::vector< FormFile > & getFiles() const
form_iterator getElementByValue(const std::string &value)
Find a radio button in a radio group, or a selected list item.
const std::vector< FormEntry > & getElements() const
Get all the submitted form elements, excluding files.
form_iterator getElement(const std::string &name)
Find a radio button in a radio group, or a selected list item.
The namespace containing the cgicc library.
std::vector< FormEntry >::iterator form_iterator
A vector of FormEntry objects.
std::vector< FormFile >::const_iterator const_file_iterator
A vector of const FormFile objects.
std::vector< FormEntry >::const_iterator const_form_iterator
A vector of const FormEntry objects.
std::vector< FormFile >::iterator file_iterator
A vector of FormFile objects.