From 944c63e6f26d1f05ba6f63c60f510d3796872f3e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Feb 2009 19:07:30 -0400 Subject: The Great Renaming, Part II The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset. --- src/output.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/output.h') diff --git a/src/output.h b/src/output.h index fe007d42..93fd1d53 100644 --- a/src/output.h +++ b/src/output.h @@ -56,28 +56,28 @@ namespace ledger { * * Long. */ -class format_xacts : public item_handler +class format_posts : public item_handler { protected: report_t& report; format_t first_line_format; format_t next_lines_format; format_t between_format; - entry_t * last_entry; - xact_t * last_xact; + xact_t * last_xact; + post_t * last_post; bool print_raw; public: - format_xacts(report_t& _report, const string& format, + format_posts(report_t& _report, const string& format, bool _print_raw = false); - virtual ~format_xacts() { - TRACE_DTOR(format_xacts); + virtual ~format_posts() { + TRACE_DTOR(format_posts); } virtual void flush() { report.output_stream.flush(); } - virtual void operator()(xact_t& xact); + virtual void operator()(post_t& post); }; /** @@ -85,37 +85,37 @@ public: * * Long. */ -class gather_statistics : public item_handler +class gather_statistics : public item_handler { protected: report_t& report; - entry_t * last_entry; - xact_t * last_xact; + xact_t * last_xact; + post_t * last_post; struct statistics_t { std::set filenames; - std::size_t total_entries; std::size_t total_xacts; - std::size_t total_uncleared_xacts; + std::size_t total_posts; + std::size_t total_uncleared_posts; std::size_t total_last_7_days; std::size_t total_last_30_days; std::size_t total_this_month; - date_t earliest_xact; - date_t latest_xact; + date_t earliest_post; + date_t latest_post; std::set accounts_referenced; std::set payees_referenced; statistics_t() - : total_entries(0), total_xacts(0), total_uncleared_xacts(0), + : total_xacts(0), total_posts(0), total_uncleared_posts(0), total_last_7_days(0), total_last_30_days(0), total_this_month(0) {} } statistics; public: gather_statistics(report_t& _report) - : report(_report), last_entry(NULL), last_xact(NULL) { + : report(_report), last_xact(NULL), last_post(NULL) { TRACE_CTOR(gather_statistics, "report&"); } virtual ~gather_statistics() { @@ -123,7 +123,7 @@ public: } virtual void flush(); - virtual void operator()(xact_t& xact); + virtual void operator()(post_t& post); }; /** -- cgit v1.2.3