class AFormItem : public APairItem | |
---|---|
An object that contains HTTP FORM submissions as APairItem | |
Method | Description |
int fiSetAndParse ( const char ) public |
A parsing method. Accepts {pccItem} as "{NAME}={VALUE}" pair and splits it up. Performs URL decoding as needed.
Returns: Nothing. |
class AFormList : public APairList | |
---|---|
A list object that contains AFormItems that are HTTP FORM submissions. | |
Method | Description |
virtual void doOut ( AStreamOutput ) public |
The output of this object is identical to AElementPairList::doURLParams. Output: {NAME1}={VALUE1}&{NAME2}={VALUE2}&... Returns: Nothing. |
int flGenerateList ( istream int iContentLength ) public |
Parsing method. Given istream-derived object {pisInput} (usually cin)
of length {iContentLength} (usually CONTENT_LENGTH environment variable),
it parses the FORM submission into discrete AFormItem pairs. Returns: Number of FORM items found. |
int flGenerateList ( const char ) public |
Parsing method. Accepts a NULL-terminated character string (usually QUERY_STRING environment variable) which this object parses into AFormItem pairs. Returns: Number of FORM items found. |
AFormItem *flAddItem ( const char int iReplace=0x0 ) public |
Accepts a NULL-terminated character string in form of "NAME=VALUE", which is parsed as AFormItem and added to the end of the list. Returns: A pointer to the new AFormItem. |
int plGetIntByName ( const char *pccName ) public |
Finds the {VALUE} associated with the {NAME} and extracts and return only the first number it finds.
Useful for submitions that may contains quotes or other non-numeric info.
Returns: Numeric value, 0 if no value was found. |