diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 20:59:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 21:00:30 -0400 |
commit | e3b44038b389461162e4920a26b09c0df9cf83b6 (patch) | |
tree | 1535a0effcea6930e4d4bae0b411e8735f558744 /src/output.cc | |
parent | db0689f547593f6904208939f21981a84c73b2c5 (diff) | |
download | fork-ledger-e3b44038b389461162e4920a26b09c0df9cf83b6.tar.gz fork-ledger-e3b44038b389461162e4920a26b09c0df9cf83b6.tar.bz2 fork-ledger-e3b44038b389461162e4920a26b09c0df9cf83b6.zip |
Moved format_accounts::should_display out of line
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/output.cc b/src/output.cc index e314d5da..b9af9a27 100644 --- a/src/output.cc +++ b/src/output.cc @@ -210,6 +210,15 @@ void format_entries::operator()(xact_t& xact) last_entry = xact.entry; } +bool format_accounts::should_display(account_t& account) +{ + if (! disp_pred.predicate && report.HANDLED(display_)) + disp_pred.predicate.parse(report.HANDLER(display_).str()); + + bind_scope_t bound_scope(report, account); + return disp_pred(bound_scope); +} + void format_accounts::flush() { std::ostream& out(report.output_stream); |