diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-02 00:07:14 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-02 00:07:14 +0000 |
commit | 2a1055890241b1299d8b91d65038d0f4f5067fb5 (patch) | |
tree | 97616b59a3139a591458e4ac95580fa6937c39b4 /ledger.h | |
parent | 3afa81857a688cb2eca56945dc5c40b9825b2e69 (diff) | |
download | fork-ledger-2a1055890241b1299d8b91d65038d0f4f5067fb5.tar.gz fork-ledger-2a1055890241b1299d8b91d65038d0f4f5067fb5.tar.bz2 fork-ledger-2a1055890241b1299d8b91d65038d0f4f5067fb5.zip |
*** empty log message ***
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,5 +1,5 @@ #ifndef _LEDGER_H -#define _LEDGER_H "$Revision: 1.15 $" +#define _LEDGER_H "$Revision: 1.16 $" ////////////////////////////////////////////////////////////////////// // @@ -139,17 +139,9 @@ class amount // String conversion routines virtual void parse(const char * num) = 0; - virtual amount& operator=(const char * num) = 0; virtual std::string as_str(bool full_prec = false) const = 0; - virtual operator std::string() const = 0; }; -template<class Traits> -std::basic_ostream<char, Traits> & -operator<<(std::basic_ostream<char, Traits>& out, const amount& a) { - return (out << std::string(a)); -} - extern amount * create_amount(const char * value, const amount * cost = NULL); @@ -294,6 +286,11 @@ struct account accounts_t children; + account() : parent(NULL), checked(0) { +#ifdef HUQUQULLAH + exempt_or_necessary = false; +#endif + } account(const std::string& _name, struct account * _parent = NULL) : parent(_parent), name(_name), checked(0) { #ifdef HUQUQULLAH |