cgiInput Class Reference

#include <cgiClass.h>

Collaboration diagram for cgiInput:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cgiInput ()
 ~cgiInput ()
void set (const char *boundaryString, size_t size=0)
void setMultipart (aString boundary)
aStringSafe (void)
queryStringMapTheMap (void)
ocFilesFileMap (void)
int count (const char *key)
aStringoperator[] (const char *key)
 cgiInput ()
 ~cgiInput ()
void set (const char *boundaryString, size_t size=0)
void setMultipart (aString boundary)
aStringSafe (void)
queryStringMapTheMap (void)
ocFilesFileMap (void)
int count (const char *key)
aStringoperator[] (const char *key)

Protected Attributes

aString uploadPath

Private Attributes

queryStringMap theMap
ocFiles fileMap
aString safe

Friends

class cgiEnvironment


Detailed Description

class cgiInput This class is used to hold form (or querystring) data from the caller. cgiEnvironment HAS-A cgiInput member variable called clientArguments clientArguments is obtained by calling cgiInput::ClientArguments()

Definition at line 51 of file cgiClass.h.


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

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


Friends And Related Function Documentation

cgiEnvironment [friend]

Definition at line 101 of file cgiClass.h.


Member Data Documentation

private member variables: queryStringMap theMap aString safe

Definition at line 58 of file cgiClass.h.

Referenced by count(), operator[](), set(), setMultipart(), and TheMap().

Definition at line 59 of file cgiClass.h.

Referenced by FileMap(), and setMultipart().

Definition at line 60 of file cgiClass.h.

Referenced by Safe(), and set().

Definition at line 62 of file cgiClass.h.

Referenced by cgiEnvironment::cgiEnvironment(), and setMultipart().


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:09 2009 for w3systemsDevelopment by  doxygen 1.5.5