From dbac09405f1dede27d21f91dddc991f76e0f7438 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Jun 2010 02:52:36 -0400 Subject: Added new command: "pricemap [DATE]" This outputs the pricing relationship of commodities in your data file, as of DATE (optional), using the DOT language. If you have graphviz installed, it can be viewed quite simply using: ledger pricemap | dotty - Each relationship in the graph shows the conversion factor to exchange one commodity for another, and the date at which this factor was determined. --- src/pool.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pool.h') diff --git a/src/pool.h b/src/pool.h index c1325944..ac66d7a6 100644 --- a/src/pool.h +++ b/src/pool.h @@ -131,6 +131,12 @@ public: const bool add_prices = true, const optional& 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& moment = none); + #if defined(HAVE_BOOST_SERIALIZATION) private: /** Serialization. */ -- cgit v1.2.3