#include <User.h>
Public Member Functions | |
NormalUser () | |
Default constructor. | |
NormalUser (Row &aRow) | |
Constructs an instance of NormalUser and fill it with data taken from mysqlpp::Row. | |
~NormalUser () | |
Order * | placeOrder () 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. | |
Basket * | getBasket () |
Private Attributes | |
Basket | basket |
NormalUser::NormalUser | ( | ) |
Default constructor.
NormalUser::NormalUser | ( | Row & | aRow | ) |
Constructs an instance of NormalUser and fill it with data taken from mysqlpp::Row.
aRow | Record fetched from the database |
NormalUser::~NormalUser | ( | ) |
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.
Implements User.
References basket, Order::create(), ManagedObject::intForKey(), and KEY_USR_UID.
Basket NormalUser::basket [private] |
Referenced by getBasket(), and placeOrder().