summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-06-21 04:52:43 -0400
committerjohnw <johnw@newartisans.com>2004-06-21 04:52:43 -0400
commitc892e8c7ad0aaf6c47ff6e9075149a76188ae670 (patch)
treec21e7f6145722e430439b00785ebe63f609823bd /ledger.h
parent39ee2ae3d846b4bffa4e42ba4f3a9bc320ca9270 (diff)
downloadfork-ledger-c892e8c7ad0aaf6c47ff6e9075149a76188ae670.tar.gz
fork-ledger-c892e8c7ad0aaf6c47ff6e9075149a76188ae670.tar.bz2
fork-ledger-c892e8c7ad0aaf6c47ff6e9075149a76188ae670.zip
fixes to price history support
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ledger.h b/ledger.h
index 077a091b..60e5160c 100644
--- a/ledger.h
+++ b/ledger.h
@@ -82,10 +82,12 @@ class amount
virtual amount * copy() const = 0;
virtual amount * value(const amount * pr = NULL) const = 0;
- virtual amount * street(bool get_quotes) const = 0;
+ virtual void set_value(const amount * pr) = 0;
+ virtual amount * street(std::time_t * when = NULL,
+ bool get_quotes = false) const = 0;
virtual bool has_price() const = 0;
- virtual void set_value(const amount * pr) = 0;
+ virtual amount * per_item_price() const = 0;
// Comparison