diff options
Diffstat (limited to 'src/quotes.h')
-rw-r--r-- | src/quotes.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/quotes.h b/src/quotes.h new file mode 100644 index 00000000..a1fabd93 --- /dev/null +++ b/src/quotes.h @@ -0,0 +1,30 @@ +#ifndef _QUOTES_H +#define _QUOTES_H + +#include "amount.h" + +namespace ledger { + +class quotes_by_script : public commodity_base_t::updater_t +{ + string price_db; + time_duration pricing_leeway; + bool& cache_dirty; + + public: + quotes_by_script(string _price_db, + time_duration _pricing_leeway, + bool& _cache_dirty) + : 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); +}; + +} // namespace ledger + +#endif // _QUOTES_H |