diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 12:46:46 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 12:46:46 -0600 |
commit | 7e250696e02e0392bc865f66570da296ced124ab (patch) | |
tree | 8195a38ca7c6e04610f2ca3cecea900ff08f66de /src/scope.h | |
parent | 77292ac3cda2f1052559991b9d53f1ad7c1fec9a (diff) | |
download | fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.gz fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.bz2 fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.zip |
Many options now have additive effect
For example, -A and -V used to override each other, whereas now:
-A report the average amount
-V report all amounts at current value
-AV report the current value of the average
-VA report the average of all current values
Diffstat (limited to 'src/scope.h')
-rw-r--r-- | src/scope.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scope.h b/src/scope.h index 75dc2c0f..31ef61cb 100644 --- a/src/scope.h +++ b/src/scope.h @@ -99,10 +99,13 @@ private: #endif // HAVE_BOOST_SERIALIZATION }; +class empty_scope_t; + class scope_t { public: - static scope_t * default_scope; + static scope_t * default_scope; + static empty_scope_t * empty_scope; explicit scope_t() { TRACE_CTOR(scope_t, ""); |