diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-20 21:33:23 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-20 21:33:23 -0500 |
commit | 117dddabd4f883de4f464821f9567d889a6fa449 (patch) | |
tree | 602c8c5e72b81ffc9bcf01bbaed5e2875d0e60a0 /src/pool.h | |
parent | cc9110a43a1e2d006de8d24a84bbfb2c6918cf33 (diff) | |
parent | 4e6ec09e4d2a69dcb06627e44512980b09561448 (diff) | |
download | fork-ledger-117dddabd4f883de4f464821f9567d889a6fa449.tar.gz fork-ledger-117dddabd4f883de4f464821f9567d889a6fa449.tar.bz2 fork-ledger-117dddabd4f883de4f464821f9567d889a6fa449.zip |
Merge branch 'next'
Diffstat (limited to 'src/pool.h')
-rw-r--r-- | src/pool.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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<string, commodity_t *> 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<commodity_pool_t> current_pool; + function<optional<price_point_t> (commodity_t& commodity, const optional<commodity_t&>& in_terms_of)> get_commodity_quote; @@ -136,6 +138,7 @@ private: template<class Archive> void serialize(Archive& ar, const unsigned int /* version */) { + ar & current_pool; ar & commodities; ar & null_commodity; ar & default_commodity; |