summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-11 23:21:14 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-11 23:21:14 +0000
commitfb4fed00ba3dede4c649e21ce64cf29a8244c8bd (patch)
tree7107662d45768b11ccd9b9c24f69798155d001d2 /ledger.h
parentac8a1b741aa975e7957930d2ad89c0bec9675f7f (diff)
downloadfork-ledger-fb4fed00ba3dede4c649e21ce64cf29a8244c8bd.tar.gz
fork-ledger-fb4fed00ba3dede4c649e21ce64cf29a8244c8bd.tar.bz2
fork-ledger-fb4fed00ba3dede4c649e21ce64cf29a8244c8bd.zip
c
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ledger.h b/ledger.h
index 8e917447..c63ce574 100644
--- a/ledger.h
+++ b/ledger.h
@@ -1,5 +1,5 @@
#ifndef _LEDGER_H
-#define _LEDGER_H "$Revision: 1.26 $"
+#define _LEDGER_H "$Revision: 1.27 $"
//////////////////////////////////////////////////////////////////////
//
@@ -152,11 +152,14 @@ class transaction
};
+class book;
class entry
{
entry(const entry&);
public:
+ book * ledger;
+
std::time_t date;
std::string code;
std::string desc;
@@ -165,7 +168,7 @@ class entry
std::list<transaction *> xacts;
- explicit entry() : cleared(false) {}
+ explicit entry(book * l) : ledger(l), cleared(false) {}
// If we're running as a command-line tool, it's cheaper to just
// throw away the heap on exit, than spend time freeing things up