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
183 operator= (
const Cgicc& cgi);
200 getCompileDate()
const;
209 getCompileTime()
const;
244 queryCheckbox(
const std::string& elementName)
const;
253 operator[] (
const std::string& name)
254 {
return getElement(name); }
263 operator() (
const std::string& name)
const;
271 inline const_form_iterator
272 operator[] (
const std::string& name)
const
273 {
return getElement(name); }
282 getElement(
const std::string& name);
291 getElement(
const std::string& name)
const;
301 getElement(
const std::string& name,
302 std::vector<FormEntry>& result)
const;
311 getElementByValue(
const std::string& value);
320 getElementByValue(
const std::string& value)
const;
330 getElementByValue(
const std::string& value,
331 std::vector<FormEntry>& result)
const;
338 inline const std::vector<FormEntry>&
340 {
return fFormData; }
347 inline const std::vector<FormEntry>&
349 {
return fFormData; }
364 getFile(
const std::string& name);
373 getFile(
const std::string& name)
const;
379 inline const std::vector<FormFile>&
381 {
return fFormFiles; }
395 {
return fEnvironment;}
410 save(
const std::string& filename)
const;
419 restore(
const std::string& filename);
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;
Class representing a single HTML form entry.
std::vector< FormEntry >::const_iterator const_form_iterator
A vector of const FormEntry objects.
std::vector< FormEntry >::iterator form_iterator
A vector of FormEntry objects.
Cgicc(const Cgicc &cgi)
Copy constructor.
std::vector< FormFile >::iterator file_iterator
A vector of FormFile objects.
Platform and operating system specific macro definitions.
const CgiEnvironment & getEnvironment() const
const std::vector< FormFile > & getFiles() const
Class encapsulating the CGI runtime environment.
The main class of the GNU cgicc library.
const std::vector< FormEntry > & getElements() const
Get all the submitted form elements, excluding files.
The namespace containing the cgicc library.
Class encapsulating the CGI runtime environment.
std::vector< FormFile >::const_iterator const_file_iterator
A vector of const FormFile objects.