From 9805abbf2b38d64308bac536eea40e544e8f7cfe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Feb 2009 16:53:25 -0400 Subject: Allow for sorting of the balance report Sorting is repeated at each level of the hierarchy, unless --flat was specified in which case it applies to the entire applicable accounts list. --- src/output.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/output.h') diff --git a/src/output.h b/src/output.h index ded29143..7019b7b2 100644 --- a/src/output.h +++ b/src/output.h @@ -165,6 +165,8 @@ protected: item_predicate disp_pred; bool flatten_list; + std::list posted_accounts; + public: format_accounts(report_t& _report, const string& _format = "", @@ -184,8 +186,8 @@ public: TRACE_DTOR(format_accounts); } - virtual std::size_t post_accounts(account_t& account); - virtual void flush(); + virtual void post_account(account_t& account); + virtual void flush(); virtual void operator()(account_t& account); }; @@ -209,8 +211,8 @@ class format_equity : public format_accounts TRACE_DTOR(format_equity); } - virtual std::size_t post_accounts(account_t& account); - virtual void flush(); + virtual void post_account(account_t& account); + virtual void flush(); }; } // namespace ledger -- cgit v1.2.3