summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/ledger.h b/ledger.h
index d86c0107..6a98eb62 100644
--- a/ledger.h
+++ b/ledger.h
@@ -228,17 +228,18 @@ class totals
totals() {}
~totals();
- void credit(const amount * val);
- void credit(const totals& other);
+ void credit(const amount * val);
+ void credit(const totals& other);
- void negate();
+ void negate();
- bool is_zero() const;
- bool is_negative() const;
+ bool is_zero() const;
+ bool is_negative() const;
- void print(std::ostream& out, int width) const;
- void print_street(std::ostream& out, int width,
- std::time_t * when = NULL,
+ void print(std::ostream& out, int width) const;
+
+ totals * value() const;
+ totals * street(std::time_t * when = NULL,
bool use_history = false,
bool download = false) const;
};