diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 04:50:11 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 04:50:11 -0400 |
commit | 479ac0ce36279125d0d96c422221408fa1970eef (patch) | |
tree | be285f13cea94b850ad23823626b2413a2412141 /src/output.h | |
parent | 1aff6ec01deaee142209d007a7acebb859677603 (diff) | |
download | fork-ledger-479ac0ce36279125d0d96c422221408fa1970eef.tar.gz fork-ledger-479ac0ce36279125d0d96c422221408fa1970eef.tar.bz2 fork-ledger-479ac0ce36279125d0d96c422221408fa1970eef.zip |
Fleshed out the "stats" command
Diffstat (limited to 'src/output.h')
-rw-r--r-- | src/output.h | 24 |
1 files changed, 18 insertions, 6 deletions
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<path> 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<string> accounts_referenced; + std::set<string> payees_referenced; + std::set<date_t> 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) |