From 479ac0ce36279125d0d96c422221408fa1970eef Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 16 Feb 2009 04:50:11 -0400 Subject: Fleshed out the "stats" command --- src/output.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'src/output.h') diff --git a/src/output.h b/src/output.h index e68e51f3..31214d29 100644 --- a/src/output.h +++ b/src/output.h @@ -91,14 +91,26 @@ protected: xact_t * last_xact; struct statistics_t { - std::size_t total_entries; - std::size_t total_xacts; + std::set filenames; + + std::size_t total_entries; + std::size_t total_xacts; + std::size_t total_uncleared_xacts; + 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; + + std::set accounts_referenced; + std::set payees_referenced; + std::set unique_dates; statistics_t() - : total_entries(0), - total_xacts(0) {} - } - statistics; + : total_entries(0), total_xacts(0), total_uncleared_xacts(0), + total_last_7_days(0), total_last_30_days(0), total_this_month(0) {} + } statistics; public: gather_statistics(report_t& _report) -- cgit v1.2.3