summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-04 03:35:06 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 05:03:52 -0600
commit48ab6ad1dbab100bb8abd87029a0ca5bc501a3db (patch)
tree294112ea9df8ecac90c98c08327ce13fe5592682 /src/pool.h
parent58d912827d2c6bd90c063537378baffff014c0f2 (diff)
downloadfork-ledger-48ab6ad1dbab100bb8abd87029a0ca5bc501a3db.tar.gz
fork-ledger-48ab6ad1dbab100bb8abd87029a0ca5bc501a3db.tar.bz2
fork-ledger-48ab6ad1dbab100bb8abd87029a0ca5bc501a3db.zip
Switched to using Boost.Graph for commodity pricing
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/pool.h b/src/pool.h
index 87b315f9..709f5c71 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -46,6 +46,8 @@
#ifndef _POOL_H
#define _POOL_H
+#include "history.h"
+
namespace ledger {
struct cost_breakdown_t
@@ -66,15 +68,16 @@ public:
*/
typedef std::map<string, commodity_t *> commodities_map;
- commodities_map commodities;
- commodity_t * null_commodity;
- commodity_t * default_commodity;
+ commodities_map commodities;
+ commodity_history_t commodity_price_history;
+ commodity_t * null_commodity;
+ commodity_t * default_commodity;
- bool keep_base; // --base
+ bool keep_base; // --base
- optional<path> price_db; // --price-db=
- long quote_leeway; // --leeway=
- bool get_quotes; // --download
+ optional<path> price_db; // --price-db=
+ long quote_leeway; // --leeway=
+ bool get_quotes; // --download
static shared_ptr<commodity_pool_t> current_pool;
@@ -131,12 +134,6 @@ public:
const bool add_prices = true,
const optional<datetime_t>& moment = none);
- // Output the commodity price map for a given date as a DOT file
-
- void print_pricemap(std::ostream& out,
- const keep_details_t& keep,
- const optional<datetime_t>& moment = none);
-
#if defined(HAVE_BOOST_SERIALIZATION)
private:
/** Serialization. */