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

RestrictedAccountProxy Class Reference

RestrictedAccountProxy is a read/write access proxy with limitations, you can make deposits but you can't withdraw funds! More...

#include <RestrictedAccountProxy.hpp>

Inheritance diagram for RestrictedAccountProxy::

AccountProxy AbstractBankAccount corelinux::Proxy< AbstractBankAccount > List of all members.

Public Methods

 RestrictedAccountProxy (void)
 Default constructor.

 RestrictedAccountProxy (AbstractBankAccountPtr)
 Initializing constructor.

 RestrictedAccountProxy (RestrictedAccountProxyCref)
 Copy constructor.

virtual ~RestrictedAccountProxy (void)
 Virtual Destructor.

RestrictedAccountProxyRef operator= (RestrictedAccountProxyCref)
 Assignment operator. More...

bool operator== (RestrictedAccountProxyCref) const
 Equality operator compares the subject pointers. More...

virtual void withdrawFunds (Amount) throw ( InsufficientFundsException )
 Withdraw funds from the account is not allowed and we throw an exception.


Detailed Description

RestrictedAccountProxy is a read/write access proxy with limitations, you can make deposits but you can't withdraw funds!


Member Function Documentation

RestrictedAccountProxyRef RestrictedAccountProxy::operator= RestrictedAccountProxyCref    aProxy
 

Assignment operator.

Parameters:
RestrictedAccountProxy  const reference
Returns:
RestrictedAccountProxy reference

bool RestrictedAccountProxy::operator== RestrictedAccountProxyCref    aProxy const
 

Equality operator compares the subject pointers.

Parameters:
RestrictedAccountProxy  const reference
Returns:
bool if subjects match


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