#include <balance.h>
Public Methods | |
Balance () | |
~Balance () | |
void | dump () |
Dumps the data of this object to stderr. | |
Balance | |
bool | isDebit () const |
Returns true if the value is a debit (i.e. positive). | |
void | setDebit (bool c) |
const Value & | value () const |
Returns the value of this balance. | |
void | setValue (const Value &v) |
Date and Time | |
const Date & | date () const |
void | setDate (const Date &d) |
const Time & | time () const |
void | setTime (const Time &t) |
This class stores the data that represent one specific balance. An account can have multiple balances according to different balancing rules.
|
Empty Constructor. |
|
Default Destructor. |
|
Returns the Date of this balance. Returns the Date when this balance was valid/computed/fixed. |
|
Dumps the data of this object to stderr. Useful for debuggin purposes. |
|
Returns
If the value of this balance is a debit, then this method returns However, for some account types (which are probably not-so-common for private homebanking), in accountant-speak a "debit" can also mean that you owe money to the bank. Please take the written statements of the bank as a reference: If the bank calls your balance a "debit", then this method returns true -- so eventually the interpretation is up to you. |
|
Set the Date of this balance.
|
|
Set whether this value is a debit (i.e. positive).
|
|
Set the Time of this balance.
|
|
Set the value of this balance.
|
|
Returns the Time of day of this balance. |
|
Returns the value of this balance.
|