diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-11 23:21:14 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-11 23:21:14 +0000 |
commit | fb4fed00ba3dede4c649e21ce64cf29a8244c8bd (patch) | |
tree | 7107662d45768b11ccd9b9c24f69798155d001d2 /ledger.h | |
parent | ac8a1b741aa975e7957930d2ad89c0bec9675f7f (diff) | |
download | fork-ledger-fb4fed00ba3dede4c649e21ce64cf29a8244c8bd.tar.gz fork-ledger-fb4fed00ba3dede4c649e21ce64cf29a8244c8bd.tar.bz2 fork-ledger-fb4fed00ba3dede4c649e21ce64cf29a8244c8bd.zip |
c
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |