NormalUser Class Reference

#include <User.h>

Inheritance diagram for NormalUser:
Inheritance graph
[legend]
Collaboration diagram for NormalUser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NormalUser ()
 Default constructor.
 NormalUser (Row &aRow)
 Constructs an instance of NormalUser and fill it with data taken from mysqlpp::Row.
 ~NormalUser ()
OrderplaceOrder () throw (string)
 Call this method when the user has a filled his basket and want to place a new order; if successful, an instance of class Order is returned and the basket is cleared.
BasketgetBasket ()

Private Attributes

Basket basket

Constructor & Destructor Documentation

NormalUser::NormalUser (  ) 

Default constructor.

NormalUser::NormalUser ( Row &  aRow  ) 

Constructs an instance of NormalUser and fill it with data taken from mysqlpp::Row.

Parameters:
aRow Record fetched from the database
See also:
ManagedObject, User::User
NormalUser::~NormalUser (  ) 

Member Function Documentation

Basket* NormalUser::getBasket (  )  [inline, virtual]

Implements User.

References basket.

Order * NormalUser::placeOrder (  )  throw (string) [virtual]

Call this method when the user has a filled his basket and want to place a new order; if successful, an instance of class Order is returned and the basket is cleared.

Returns:
An instance of class Order

Implements User.

References basket, Order::create(), ManagedObject::intForKey(), and KEY_USR_UID.


Member Data Documentation

Referenced by getBasket(), and placeOrder().


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

Generated by  doxygen 1.6.2