diff options
Diffstat (limited to 'quotes.h')
-rw-r--r-- | quotes.h | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -5,18 +5,26 @@ namespace ledger { -class quotes_by_script : public commodity_base_t::updater_t +class quotes_by_script + : public noncopyable, commodity_t::base_t::updater_t { - std::string price_db; + string price_db; unsigned long pricing_leeway; bool& cache_dirty; - public: - quotes_by_script(std::string _price_db, + quotes_by_script(); + +public: + quotes_by_script(path _price_db, unsigned long _pricing_leeway, bool& _cache_dirty) : price_db(_price_db), pricing_leeway(_pricing_leeway), - cache_dirty(_cache_dirty) {} + cache_dirty(_cache_dirty) { + TRACE_CTOR(quotes_by_script, "path, unsigned long, bool&"); + } + ~quotes_by_script() throw() { + TRACE_DTOR(quotes_by_script); + } virtual void operator()(commodity_base_t& commodity, const datetime_t& moment, |