summaryrefslogtreecommitdiff
path: root/src/output.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-17 21:19:31 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-17 21:19:31 -0400
commit4ec2dfeef13ead1d87302ef953e05efec102bb25 (patch)
tree0ff109dd6aaccf466ecbd64f80ae3138b9219b6a /src/output.h
parent93d195f1d97c376c26e5a7e88d6b0fc6e3b8e2d0 (diff)
downloadfork-ledger-4ec2dfeef13ead1d87302ef953e05efec102bb25.tar.gz
fork-ledger-4ec2dfeef13ead1d87302ef953e05efec102bb25.tar.bz2
fork-ledger-4ec2dfeef13ead1d87302ef953e05efec102bb25.zip
Added --flat option, to flatten the balance report
Diffstat (limited to 'src/output.h')
-rw-r--r--src/output.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/output.h b/src/output.h
index bb1b907b..ded29143 100644
--- a/src/output.h
+++ b/src/output.h
@@ -163,13 +163,16 @@ protected:
report_t& report;
format_t format;
item_predicate disp_pred;
+ bool flatten_list;
public:
format_accounts(report_t& _report,
- const string& _format = "")
- : report(_report), format(_format), disp_pred()
+ const string& _format = "",
+ bool _flatten_list = false)
+ : report(_report), format(_format), disp_pred(),
+ flatten_list(_flatten_list)
{
- TRACE_CTOR(format_accounts, "report&, const string&, const bool");
+ TRACE_CTOR(format_accounts, "report&, const string&, bool");
if (report.HANDLED(display_)) {
DEBUG("account.display",