From fb4fed00ba3dede4c649e21ce64cf29a8244c8bd Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 11 Oct 2003 23:21:14 +0000 Subject: c --- ledger.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ledger.h') 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 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 -- cgit v1.2.3