class AElementPairList : public APairList | |
---|---|
Pair items to be used in HTML tags, URL parameters and such are wrapped up in this object. | |
Method | Description |
virtual void doOut ( AStreamOutput ) public |
Provides a pair output for HTML usage. Values are quoted and pairs are separated by spaces. Output: {NAME1}="{VALUE1}" {NAME2}="{VALUE2}" ... Returns: Nothing. |
virtual void doURLParams ( AStreamOutput ) public |
Provides a pair output for HTML usage. Unquoted, URL encoded and pairs are separated by '&'. Output: {NAME1}={VALUE1}&{NAME2}={VALUE2}&... Returns: Nothing. |
AElementPairList &operator = ( const AElementPairList ) public |
Copies element pairs from {aeSource}. Returns: Reference to this object. |
void elAddEncoded ( const char const BYTE int wLength, int ) public |
This method adds a {NAME}={pccKName} and {VALUE} as binary data {pcbUserData} of size {iLength} to the list using {iMethod} for encoding. Returns: Nothing. |
const BYTE *elDecodeAndGetUserData ( const char int &iLength, int ) public |
This method reverses elAddEncoded. Given a {pccKName}, if a {VALUE} is associated then it is decoded using {iMethod} and returned. {iLength} gets set to the length of the returned BYTE array. Returns: A pointer to the BYTE array that was encoded in the {VALUE}. |
class AElement : public AElementPairList | |
---|---|
This is the base object for all HTML elements that are wrapped up as objects. Provides formatting and alignment directives. Wraps up virtually any HTML element. |
|
Method | Description |
virtual void doOut ( AStreamOutput ) public |
Outputs this object to AStreamOutput-derived object. If eSetTag was set, the output will be a properly formatted HTML tag, else it functions like APairList. Output: <{Tag} NAME0=VALUE NAME1=VALUE ...> Returns: Nothing. |
virtual void doEnd ( AStreamOutput ) public |
Ends an HTML tag. Output: </{Tag}> Returns: Nothing. |
void eSetTag ( const char ) public |
Sets the HTML Tag of this object. Returns: Nothing. |
const char *eGetTag ( void ) public |
Acess method to the HTML Tag of this object. Returns: Constant pointer to the current HTML Tag. |
class ACookie : public AElementPairList | |
---|---|
HTTP_COOKIE wrapper object used by AHTML when outputting a MIME directive. | |
Method | Description |
virtual void doOut ( AStreamOutput ) public |
Outputs this object to AStreamOutput-derived object. If eSetTag was set, the output will be a properly formatted HTML tag, else it functions like APairList. Output: NAME0=VALUE;NAME1=VALUE;... Returns: Nothing. |
class AURL : public AElementPairList | |
---|---|
URL parsing/generation/manipulation object. | |
Method | Description |
virtual void doOut ( AStreamOutput ) public |
Outputs this object to AStreamOutput-derived object. Fills in any parts of the URL which may have been left out. Output: URL_PROTOCOL://URL_NAME:URL_PASSWORD@URL_HOST:URL_PORT/URL_PATH{?#}URL_PARAM = {?QUERY || #REF} Returns: Nothing. |
void urlSet ( const char ) public |
Given a URL string, this object parses and separates it. Each element of the URL can be accessed through APairItem item where {NAME}={URL_xxx in a_predef.h}. Returns: Nothing. |
int urlIsValidURL ( void ) |
After the URL has been set with urlSet this can be used to test the validity of the URL. Returns: Non-zero if the URL is valid. |
int urlIsValidProtocol ( const char ) public |
After the URL has been set with urlSet this can be used to test the validity of the protocol used in the URL. Returns: Non-zero if a valid protocol is found. |