class ASCartItem : public APairItem
This is an object that is a contained by AShoppingCart. It HTML representation is a HIDDEN FORM element. The override of doOut method of ABaseElement allows each item to represent itself individually. This objects work very tightly with it's container AShoppingCart and customizing the behavior will require either modifying the source for these 2 object or inheriting from them and creating custom functionality.
Each shopping cart item has a quantify. That quantity can be negative and is left to the programmer to check if it is allowed or not.
Method Description
virtual void doOut
(
   AStreamOutput *pasOut
) public
Outputs itself as a HIDDEN FORM element that will be resubmitted to a CGI that will allow AShoppingCart to process and find its items.

Returns: Nothing.
int sciGetQuantity
(
   void
) public
Access method.

Returns: Number of items of this type that are present.
void sciSetQuantity
(
   int iNewQ
) public
Access method.

Returns: Nothing.
ASCartItem &operator ++
(
   void
) public
Access method for increasing the item count by 1.

Returns: Reference to this object.
ASCartItem &operator --
(
   void
) public
Access method for decreasing the item count by 1.

Returns: Reference to this object.
ASCartItem &operator +=
(
   int iAddQ
) public
Access method for increasing the item count by {iAddQ}, and {iAddQ} can be negative.

Returns: Reference to this object.
class AShoppingCart : public APairList
This is an object that contains ASCartItems. It handles the doOut for itself and all of its contents inside a FORM submition area. Multiple shopping carts can be used, as long as the {m_pcCartName} is unique. This object can also find its contents if given APairList-based object, which usually will be ACGI object with FORM submissions.
Method Description
virtual void doOut
(
   AStreamOutput *pasOut
) public
Generates HTML output that will represent this particular object inside a FORM submition area.

Returns: Nothing.
void ascSetCartName
(
const char *pccName
) public
Sets the name of this shopping cart object.

Returns: Nothing.
const char *ascGetCartName
(
   void
) public
Gets the current name of this object.

Returns: Constant character pointer to the member variable that contains the name.
ASCartItem *ascAddCartItem
(
   const char *pccItemName,
   int iQuantity=0x1
) public
A method for adding new items to the cart. {pccItemName} is the {NAME} of the pair and the value is user settable.

Returns: A pointer to the new item, or an existing item if the name exists.