diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-03 06:11:04 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:36 -0400 |
commit | c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 (patch) | |
tree | 204d28bfa2bdbfe8d7f550877faa114c1e93859f /src/quotes.h | |
parent | f9f24fab933266ab8e12da7eef4cc2a906f77350 (diff) | |
download | ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.tar.gz ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.tar.bz2 ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.zip |
Revised how commodities are dealt with.
Diffstat (limited to 'src/quotes.h')
-rw-r--r-- | src/quotes.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quotes.h b/src/quotes.h index 8ac3b9d4..5f39f041 100644 --- a/src/quotes.h +++ b/src/quotes.h @@ -5,7 +5,7 @@ namespace ledger { -class quotes_by_script : public commodity_base_t::updater_t +class quotes_by_script { path price_db; time_duration pricing_leeway; @@ -18,11 +18,11 @@ class quotes_by_script : public commodity_base_t::updater_t : price_db(_price_db), pricing_leeway(_pricing_leeway), cache_dirty(_cache_dirty) {} - virtual void operator()(commodity_base_t& commodity, - const ptime& moment, - const ptime& date, - const ptime& last, - amount_t& price); + virtual optional<amount_t> + operator()(commodity_t& commodity, + const optional<moment_t>& date, + const optional<moment_t>& moment, + const optional<moment_t>& last); }; DECLARE_EXCEPTION(download_error); |