summaryrefslogtreecommitdiff
path: root/src/annotate.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-06 02:01:25 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-06 02:01:25 -0600
commiteb3591f898e194be0cb6c15107e8e41e9dd67206 (patch)
tree6c07c2e4d6636d329dd72d29f28faa3d216f0b68 /src/annotate.h
parent9509a7b8819c3ce1fd2680de65f9bd8098ac6961 (diff)
downloadfork-ledger-eb3591f898e194be0cb6c15107e8e41e9dd67206.tar.gz
fork-ledger-eb3591f898e194be0cb6c15107e8e41e9dd67206.tar.bz2
fork-ledger-eb3591f898e194be0cb6c15107e8e41e9dd67206.zip
Implemented annotated_commodity_t::find_price
Most specifically, it now respects a valuation expression associated with the commodity.
Diffstat (limited to 'src/annotate.h')
-rw-r--r--src/annotate.h5
1 files changed, 5 insertions, 0 deletions
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<price_point_t>
+ virtual find_price(const optional<commodity_t&>& commodity = none,
+ const optional<datetime_t>& moment = none,
+ const optional<datetime_t>& 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;