summaryrefslogtreecommitdiff
path: root/src/annotate.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-29 16:25:22 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-29 16:25:22 -0500
commit0f180b917ae00b7b247db367020fd29823000877 (patch)
tree632df80d2f2a1387dfd4f6b67eda1baf2c2e08d8 /src/annotate.h
parent7422fa5f3e2505dfa8f5494e4ce9e987440a57a1 (diff)
downloadfork-ledger-0f180b917ae00b7b247db367020fd29823000877.tar.gz
fork-ledger-0f180b917ae00b7b247db367020fd29823000877.tar.bz2
fork-ledger-0f180b917ae00b7b247db367020fd29823000877.zip
Improved some error messages
Diffstat (limited to 'src/annotate.h')
-rw-r--r--src/annotate.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/annotate.h b/src/annotate.h
index 85a34662..878d6148 100644
--- a/src/annotate.h
+++ b/src/annotate.h
@@ -262,6 +262,14 @@ public:
const datetime_t& oldest = datetime_t()) const;
virtual commodity_t& strip_annotations(const keep_details_t& what_to_keep);
+
+ virtual void print(std::ostream& out, bool elide_quotes = false,
+ bool print_annotations = false) const {
+ commodity_t::print(out, elide_quotes);
+ if (print_annotations)
+ write_annotations(out);
+ }
+
virtual void write_annotations(std::ostream& out,
bool no_computed_annotations = false) const;