summaryrefslogtreecommitdiff
path: root/src/output.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-13 05:48:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-13 05:48:32 -0400
commit3231e380bbe6ebd5641a24a493078e8aee0fdfe3 (patch)
treec4fbd329f3a71a9804b0db19f1b1bbb8b4e799ac /src/output.h
parent46bc362804fbf0cab0384bf046c95b1495fa98c6 (diff)
downloadfork-ledger-3231e380bbe6ebd5641a24a493078e8aee0fdfe3.tar.gz
fork-ledger-3231e380bbe6ebd5641a24a493078e8aee0fdfe3.tar.bz2
fork-ledger-3231e380bbe6ebd5641a24a493078e8aee0fdfe3.zip
The balance output now includes the final total.
Diffstat (limited to 'src/output.h')
-rw-r--r--src/output.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/output.h b/src/output.h
index 885b8bc9..3fe1ce71 100644
--- a/src/output.h
+++ b/src/output.h
@@ -90,22 +90,24 @@ private:
class format_accounts : public item_handler<account_t>
{
protected:
- report_t& report;
-
+ report_t& report;
+ format_t format;
item_predicate<account_t> disp_pred;
+ bool print_final_total;
bool disp_subaccounts_p(account_t& account, account_t *& to_show);
bool display_account(account_t& account);
public:
- format_t format;
-
format_accounts(report_t& _report,
const string& _format,
- const string& display_predicate = "" /*,
- const bool print_final_total = true */)
- : report(_report), disp_pred(display_predicate), format(_format) {
- TRACE_CTOR(format_accounts, "report&, const string&, const string&");
+ const string& display_predicate = "",
+ const bool _print_final_total = true)
+ : report(_report), format(_format), disp_pred(display_predicate),
+ print_final_total(_print_final_total)
+ {
+ TRACE_CTOR(format_accounts,
+ "report&, const string&, const string&, const bool");
}
virtual ~format_accounts() {
TRACE_DTOR(format_accounts);