summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-02 00:07:14 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-02 00:07:14 +0000
commit2a1055890241b1299d8b91d65038d0f4f5067fb5 (patch)
tree97616b59a3139a591458e4ac95580fa6937c39b4 /ledger.h
parent3afa81857a688cb2eca56945dc5c40b9825b2e69 (diff)
downloadfork-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.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/ledger.h b/ledger.h
index 5cb5e3f7..e074f82e 100644
--- a/ledger.h
+++ b/ledger.h
@@ -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