diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-24 16:53:50 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-24 16:53:50 +0100 |
commit | 0663ac0a2a09c9061198298ef84c87820e0a46f3 (patch) | |
tree | 754fd8e3230c4011b588dddbb2c8c77577e090ec /src/quotes.h | |
parent | ba6254fd45561b1fc6b557aeb1ce345a80369773 (diff) | |
download | fork-ledger-0663ac0a2a09c9061198298ef84c87820e0a46f3.tar.gz fork-ledger-0663ac0a2a09c9061198298ef84c87820e0a46f3.tar.bz2 fork-ledger-0663ac0a2a09c9061198298ef84c87820e0a46f3.zip |
Moved commodity_quote_from_script to quotes.cc
Diffstat (limited to 'src/quotes.h')
-rw-r--r-- | src/quotes.h | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/src/quotes.h b/src/quotes.h index 68c7cade..ea47d4c2 100644 --- a/src/quotes.h +++ b/src/quotes.h @@ -46,39 +46,10 @@ #ifndef _QUOTES_H #define _QUOTES_H - namespace ledger { -#if 0 -/** - * @brief Brief - * - * Long. - */ -class quotes_by_script : public noncopyable, public commodity_t::base_t::updater_t -{ - string price_db; - std::size_t pricing_leeway; - - quotes_by_script(); - -public: - quotes_by_script(path _price_db, - std::size_t _pricing_leeway) - : price_db(_price_db), pricing_leeway(_pricing_leeway) { - TRACE_CTOR(quotes_by_script, "path, std::size_t, bool&"); - } - ~quotes_by_script() throw() { - TRACE_DTOR(quotes_by_script); - } - - virtual void operator()(commodity_base_t& commodity, - const datetime_t& moment, - const datetime_t& date, - const datetime_t& last, - amount_t& price); -}; -#endif +optional<price_point_t> +commodity_quote_from_script(const optional<commodity_t&>& exchange_commodity); } // namespace ledger |