diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-04 02:52:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-04 02:53:18 -0400 |
commit | dbac09405f1dede27d21f91dddc991f76e0f7438 (patch) | |
tree | cf63db890b72a95f424ccc9fe7df4e7c39adec13 /src/pool.h | |
parent | 946534b102da5bd9bc1e26e1c0f3869dc81457d7 (diff) | |
download | fork-ledger-dbac09405f1dede27d21f91dddc991f76e0f7438.tar.gz fork-ledger-dbac09405f1dede27d21f91dddc991f76e0f7438.tar.bz2 fork-ledger-dbac09405f1dede27d21f91dddc991f76e0f7438.zip |
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.
Diffstat (limited to 'src/pool.h')
-rw-r--r-- | src/pool.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |