#include <AccountProxy.hpp>
Inheritance diagram for AccountProxy::
Public Methods | |
AccountProxy (void) | |
Default constructor. | |
AccountProxy (AbstractBankAccountPtr) | |
Initializing constructor. | |
AccountProxy (AccountProxyCref) | |
Copy constructor. | |
virtual | ~AccountProxy (void) |
Virtual Destructor. | |
AccountProxyRef | operator= (AccountProxyCref) |
Assignment operator. More... | |
bool | operator== (AccountProxyCref) const |
Equality operator compares the subject pointers. More... | |
virtual AmountCref | getBalance (void) const |
Retrieve the account balance. More... | |
virtual void | withdrawFunds (Amount) throw (InsufficientFundsException) |
Withdraw an amount of funds from the account. More... | |
virtual void | depositFunds (Amount) throw (InsufficientFundsException) |
Deposit funds into the account. More... |
It is derived from AbstractBankAccount as well so that the proxy can be used as a Account in the application.
Another option would have been to "realize" the interface only, somewhat like a bridge, but this would have meant the application is aware of the Proxy type.
|
Deposit funds into the account.
Reimplemented from AbstractBankAccount. |
|
Retrieve the account balance.
Reimplemented from AbstractBankAccount. |
|
Assignment operator.
|
|
Equality operator compares the subject pointers.
|
|
Withdraw an amount of funds from the account.
Reimplemented from AbstractBankAccount. Reimplemented in RestrictedAccountProxy. |