summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-06-30 02:09:42 -0400
committerjohnw <johnw@newartisans.com>2004-06-30 02:09:42 -0400
commitf9c4f85870a03722953e950ef27f01a44a911c4d (patch)
treea91816410bbbc746df5eef6f88ca118f0aa7dda1 /ledger.h
parent1a5390243edf87b21e7bba0568150d50e3f10d5a (diff)
downloadledger-f9c4f85870a03722953e950ef27f01a44a911c4d.tar.gz
ledger-f9c4f85870a03722953e950ef27f01a44a911c4d.tar.bz2
ledger-f9c4f85870a03722953e950ef27f01a44a911c4d.zip
fixes
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;
};