Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

AbstractBankAccount Class Reference

AbstractBankAccount provides the interface for all accounts used in this application. More...

#include <AbstractBankAccount.hpp>

Inheritance diagram for AbstractBankAccount

Inheritance graph
[legend]
List of all members.

Public Methods

 AbstractBankAccount ( void )
 Default constructor.

 AbstractBankAccount ( AbstractBankAccountCref aRef )
 Copy constructor.

virtual ~AbstractBankAccount ( void )
 Virtual Destructor.

AbstractBankAccountRef operator= ( AbstractBankAccountCref aRef )
 Assignment operator. More...

bool operator== ( AbstractBankAccountCref aRef ) const
 Equality operator. More...

virtual AmountCref getBalance ( void ) const = 0
 Retrieve the account balance. More...

virtual void withdrawFunds ( Amount ) = 0 throw (InsufficientFundsException)
 Withdraw an amount of funds from the account. More...

virtual void depositFunds ( Amount ) = 0 throw (InsufficientFundsException)
 Deposit funds into the account. More...


Detailed Description

AbstractBankAccount provides the interface for all accounts used in this application.

Common methods such as withdrawing and depositing funds are made available, as well as retrieving the balance of the account.


Member Function Documentation

void AbstractBankAccount::depositFunds ( Amount anAmount ) throw (InsufficientFundsException) [pure virtual]
 

Deposit funds into the account.

Parameters:
Amount   - to deposit

Reimplemented in AccountProxy, and BankAccount.

AmountCref AbstractBankAccount::getBalance ( void ) const [pure virtual]
 

Retrieve the account balance.

Returns:
Amount const reference to balance

Reimplemented in AccountProxy, and BankAccount.

AbstractBankAccountRef AbstractBankAccount::operator= ( AbstractBankAccountCref aRef ) [inline]
 

Assignment operator.

Parameters:
AbstractBankAccount   const reference
Returns:
AbstractBankAccount reference

bool AbstractBankAccount::operator== ( AbstractBankAccountCref aRef ) const [inline]
 

Equality operator.

Parameters:
AbstractBankAccount   const reference
Returns:
bool - True if same instances

void AbstractBankAccount::withdrawFunds ( Amount anAmount ) throw (InsufficientFundsException) [pure virtual]
 

Withdraw an amount of funds from the account.

Parameters:
Amount   - amount to withdraw
Exceptions:
InsufficientFundsException   if the amount requested to withdraw is not available in the account funds

Reimplemented in AccountProxy, BankAccount, and RestrictedAccountProxy.


The documentation for this class was generated from the following file:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium