summaryrefslogtreecommitdiff
path: root/src/output.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-16 04:50:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-16 04:50:11 -0400
commit479ac0ce36279125d0d96c422221408fa1970eef (patch)
treebe285f13cea94b850ad23823626b2413a2412141 /src/output.h
parent1aff6ec01deaee142209d007a7acebb859677603 (diff)
downloadfork-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.h24
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)