Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class 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 Member Functions

 RestrictedAccountProxy (void)
 Default constructor.

 RestrictedAccountProxy (AbstractBankAccountPtr)
 Initializing constructor.

 RestrictedAccountProxy (RestrictedAccountProxyCref)
 Copy constructor.

virtual ~RestrictedAccountProxy (void)
 Virtual Destructor.

RestrictedAccountProxyRef operator= (RestrictedAccountProxyCref)
 Assignment operator.

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

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   ) 
 

Assignment operator.

Parameters:
RestrictedAccountProxy const reference
Returns:
RestrictedAccountProxy reference

bool RestrictedAccountProxy::operator== RestrictedAccountProxyCref   )  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