diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-19 16:53:25 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-19 16:53:25 -0400 |
commit | 9805abbf2b38d64308bac536eea40e544e8f7cfe (patch) | |
tree | 32f6b6ae629409a118efdbc99f377fa86640e33d /src/output.h | |
parent | d67c9fee0f0f576481065c7d50182a04bf5df37e (diff) | |
download | fork-ledger-9805abbf2b38d64308bac536eea40e544e8f7cfe.tar.gz fork-ledger-9805abbf2b38d64308bac536eea40e544e8f7cfe.tar.bz2 fork-ledger-9805abbf2b38d64308bac536eea40e544e8f7cfe.zip |
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.
Diffstat (limited to 'src/output.h')
-rw-r--r-- | src/output.h | 10 |
1 files changed, 6 insertions, 4 deletions
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<account_t *> 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 |