From 4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Nov 2009 21:53:02 -0500 Subject: Many improvements to Ledger's Python bindings --- src/pool.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pool.h') diff --git a/src/pool.h b/src/pool.h index 7328df9d..c3d701b9 100644 --- a/src/pool.h +++ b/src/pool.h @@ -57,6 +57,7 @@ struct cost_breakdown_t class commodity_pool_t : public noncopyable { +public: /** * The commodities collection in commodity_pool_t maintains pointers to all * the commodities which have ever been created by the user, whether @@ -65,7 +66,6 @@ class commodity_pool_t : public noncopyable */ typedef std::map commodities_map; -public: commodities_map commodities; commodity_t * null_commodity; commodity_t * default_commodity; @@ -76,6 +76,8 @@ public: long quote_leeway; // --leeway= bool get_quotes; // --download + static shared_ptr current_pool; + function (commodity_t& commodity, const optional& in_terms_of)> get_commodity_quote; @@ -136,6 +138,7 @@ private: template void serialize(Archive& ar, const unsigned int /* version */) { + ar & current_pool; ar & commodities; ar & null_commodity; ar & default_commodity; -- cgit v1.2.3