From 854b719f1ec704a7a84bee629bc759b25d19ca6f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 11 Oct 2003 22:59:43 +0000 Subject: c --- ledger.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ledger.h') diff --git a/ledger.h b/ledger.h index b7fe5e06..8e917447 100644 --- a/ledger.h +++ b/ledger.h @@ -1,5 +1,5 @@ #ifndef _LEDGER_H -#define _LEDGER_H "$Revision: 1.25 $" +#define _LEDGER_H "$Revision: 1.26 $" ////////////////////////////////////////////////////////////////////// // @@ -66,6 +66,8 @@ class amount virtual ~amount() {} virtual commodity * commdty() const = 0; + virtual void set_commdty(commodity *) = 0; + virtual amount * copy() const = 0; virtual amount * value(amount * pr = NULL) const = 0; virtual amount * street(bool get_quotes) const = 0; @@ -179,6 +181,7 @@ class entry bool matches(const regexps_map& regexps) const; bool validate(bool show_unaccounted = false) const; + bool finalize(bool do_compute = false); void print(std::ostream& out, bool shortcut = true) const; }; @@ -189,9 +192,10 @@ struct cmp_entry_date { } }; -typedef std::vector entries_list; -typedef entries_list::iterator entries_list_iterator; -typedef entries_list::const_iterator entries_list_const_iterator; +typedef std::vector entries_list; +typedef entries_list::iterator entries_list_iterator; +typedef entries_list::reverse_iterator entries_list_reverse_iterator; +typedef entries_list::const_iterator entries_list_const_iterator; class totals @@ -280,6 +284,7 @@ class book } void print(std::ostream& out, regexps_map& regexps, bool shortcut) const; + account * re_find_account(const std::string& regex); account * find_account(const std::string& name, bool create = true); }; -- cgit v1.2.3