From eb3591f898e194be0cb6c15107e8e41e9dd67206 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 6 Mar 2012 02:01:25 -0600 Subject: Implemented annotated_commodity_t::find_price Most specifically, it now respects a valuation expression associated with the commodity. --- src/annotate.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/annotate.h') diff --git a/src/annotate.h b/src/annotate.h index eb87a1b2..f9d62c5b 100644 --- a/src/annotate.h +++ b/src/annotate.h @@ -247,6 +247,11 @@ public: return *ptr; } + optional + virtual find_price(const optional& commodity = none, + const optional& moment = none, + const optional& oldest = none) const; + virtual commodity_t& strip_annotations(const keep_details_t& what_to_keep); virtual void write_annotations(std::ostream& out, bool no_computed_annotations = false) const; -- cgit v1.2.3