#include <cgiClass.h>

Public Member Functions | |
| cgiInput () | |
| ~cgiInput () | |
| void | set (const char *boundaryString, size_t size=0) |
| void | setMultipart (aString boundary) |
| aString & | Safe (void) |
| queryStringMap & | TheMap (void) |
| ocFiles & | FileMap (void) |
| int | count (const char *key) |
| aString & | operator[] (const char *key) |
| cgiInput () | |
| ~cgiInput () | |
| void | set (const char *boundaryString, size_t size=0) |
| void | setMultipart (aString boundary) |
| aString & | Safe (void) |
| queryStringMap & | TheMap (void) |
| ocFiles & | FileMap (void) |
| int | count (const char *key) |
| aString & | operator[] (const char *key) |
Protected Attributes | |
| aString | uploadPath |
Private Attributes | |
| queryStringMap | theMap |
| ocFiles | fileMap |
| aString | safe |
Friends | |
| class | cgiEnvironment |
Definition at line 51 of file cgiClass.h.
| cgiInput::cgiInput | ( | ) |
public methods:
cgiInput() Constructor ~cgiInput() Destructor
Definition at line 372 of file cgiClass.cpp.
| cgiInput::~cgiInput | ( | ) |
Definition at line 377 of file cgiClass.cpp.
| cgiInput::cgiInput | ( | ) |
public methods:
cgiInput() Constructor ~cgiInput() Destructor
| cgiInput::~cgiInput | ( | ) |
| void cgiInput::set | ( | const char * | boundaryString, | |
| size_t | size = 0 | |||
| ) |
void set( const char * queryString, size_t size = 0 ); Parses the input string into name value pairs, placing them in an associative array.
Definition at line 398 of file cgiClass.cpp.
References aString::deHexify(), aString::remainder(), aString::replaceFoundWith(), safe, aString::setSize(), theMap, aString::token(), and writelog2.
Referenced by cgiEnvironment::readInput().
| void cgiInput::setMultipart | ( | aString | boundary | ) |
void setMultipart( aString boundary ); Parses stdin name value pairs, placing them in an associative array. Writes any files out to upload directory. Note: upload directory must already exist!
Definition at line 379 of file cgiClass.cpp.
References fileMap, aString::length(), aString::str(), theMap, uploadPath, and writelog2.
Referenced by cgiEnvironment::readInput().
| aString & cgiInput::Safe | ( | void | ) |
aString & Safe(void) Returns an untouched copy of the buffer passed to the set method
Definition at line 450 of file cgiClass.cpp.
References safe.
Referenced by cgiScript::DebugString().
| queryStringMap & cgiInput::TheMap | ( | void | ) |
queryStringMap & TheMap(void); Returns an associative array of name value pairs
Definition at line 454 of file cgiClass.cpp.
References theMap.
Referenced by cgiScript::DebugString(), mail_functor::doMail(), Session_form::form_data_transfer(), ReportEmitter::genReport(), redirectToHTMLDoc(), ReportEmitter::redirectToHTMLDoc(), and ReportEmitter::run().
| ocFiles & cgiInput::FileMap | ( | void | ) |
ocFiles & FileMap(void); Returns an associative array of name ocFile pairs
Definition at line 458 of file cgiClass.cpp.
References fileMap.
| int cgiInput::count | ( | const char * | key | ) |
count of input arguments
Definition at line 462 of file cgiClass.cpp.
References theMap, and aString::token().
Referenced by uiShoppingCart::AddProduct(), Payment_Form_Complete::addUserElement(), uiShoppingCart::AlwaysAddProduct(), xml_form::boolFXfer(), forms_base::boolFXfer(), check(), filePicker::checkForfilesToDelete(), imagePicker::checkForImagesToDelete(), crtidFixup(), xml_form::dateFXfer(), forms_base::dateFXfer(), reporter::detail(), xml_form::doubleFXfer(), forms_base::doubleFXfer(), show_page::emitDetail(), list_base::emitFilter(), list_base::emitFilters(), show_page::emitSlides(), filePicker::fileList(), Report_Parameters_form::filterList(), list_base::filtersValue(), menu_item_form::form_display(), Scheme_Table_form::form_display(), ReportEmitter::genReport(), Report_Parameters::getClientData(), xml_form::getInstructions(), forms_base::getInstructions(), imagePicker::imageList(), xml_form::intFXfer(), forms_base::intFXfer(), xml_form::llongFXfer(), forms_base::llongFXfer(), xml_form::longFXfer(), forms_base::longFXfer(), main(), imagePicker::makeThumb(), xml_form::moneyFXfer(), forms_base::moneyFXfer(), free_form_functor::operator()(), Report_Parameters_form::paramFilters(), mailpage::parseItem(), virtualCheckout::paymentForm(), presentation(), list_base::reset(), ReportEmitter::run(), imagePicker::scaleSource(), proofs::setArgs(), virtualStore::setArgs(), imagePicker::setArgs(), list_base::setFilter(), list_base::setPage(), list_base::setSort(), xml_form::shortFXfer(), forms_base::shortFXfer(), slides_functor::shouldShow(), detail_functor::shouldShow(), results_functor::shouldShow(), virtualCheckout::show(), xml_form::stringFXfer(), forms_base::stringFXfer(), tagList(), templateList(), xml_form::timeFXfer(), forms_base::timeFXfer(), xml_form::unfmtLongFXfer(), and forms_base::unfmtLongFXfer().
| aString & cgiInput::operator[] | ( | const char * | key | ) |
default [const char * key] array operator returns found cgi query value by key
Definition at line 477 of file cgiClass.cpp.
References theMap.
| void cgiInput::set | ( | const char * | boundaryString, | |
| size_t | size = 0 | |||
| ) |
void set( const char * queryString, size_t size = 0 ); Parses the input string into name value pairs, placing them in an associative array.
| void cgiInput::setMultipart | ( | aString | boundary | ) |
void setMultipart( aString boundary ); Parses stdin name value pairs, placing them in an associative array. Writes any files out to upload directory. Note: upload directory must already exist!
| aString& cgiInput::Safe | ( | void | ) |
aString & Safe(void) Returns an untouched copy of the buffer passed to the set method
| queryStringMap& cgiInput::TheMap | ( | void | ) |
queryStringMap & TheMap(void); Returns an associative array of name value pairs
| ocFiles& cgiInput::FileMap | ( | void | ) |
ocFiles & FileMap(void); Returns an associative array of name ocFile pairs
| int cgiInput::count | ( | const char * | key | ) |
count of input arguments
| aString& cgiInput::operator[] | ( | const char * | key | ) |
default [const char * key] array operator returns found cgi query value by key
cgiEnvironment [friend] |
Definition at line 101 of file cgiClass.h.
queryStringMap cgiInput::theMap [private] |
private member variables: queryStringMap theMap aString safe
Definition at line 58 of file cgiClass.h.
Referenced by count(), operator[](), set(), setMultipart(), and TheMap().
ocFiles cgiInput::fileMap [private] |
aString cgiInput::safe [private] |
aString cgiInput::uploadPath [protected] |
Definition at line 62 of file cgiClass.h.
Referenced by cgiEnvironment::cgiEnvironment(), and setMultipart().
1.5.5