summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-05 16:15:09 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-05 16:15:09 -0400
commit290cac7b84b60305e185c140645c9bac2ca9fb0e (patch)
treec389da2eed81612ffb3868f61c31fa2534855fe1 /src/pool.h
parentf8bfbf8c250fa24bc9e26b9bf1eb64815a5a29ee (diff)
parent1417b40fdf0a92a85ab01f233c0ae076079901a2 (diff)
downloadfork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.gz
fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.bz2
fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.zip
Merge branch 'next'
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pool.h b/src/pool.h
index 915def16..ac66d7a6 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -86,7 +86,7 @@ public:
virtual ~commodity_pool_t() {
TRACE_DTOR(commodity_pool_t);
- foreach (commodities_map::value_type pair, commodities)
+ foreach (commodities_map::value_type& pair, commodities)
checked_delete(pair.second);
}
@@ -131,6 +131,12 @@ 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. */