From c28fad384c28fb929fc8ea69854496141bdf306a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Jun 2010 07:38:45 -0400 Subject: The --anon option now anonymizes commodities Fixes #227 / 1C90D8AF-830E-43C2-A5B7-D382F68EBDE3 --- src/filters.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/filters.h') diff --git a/src/filters.h b/src/filters.h index 3f2f2145..ffca9d1e 100644 --- a/src/filters.h +++ b/src/filters.h @@ -334,20 +334,26 @@ public: class anonymize_posts : public item_handler { - temporaries_t temps; - xact_t * last_xact; + typedef std::map commodity_index_map; + + temporaries_t temps; + commodity_index_map comms; + std::size_t next_comm_id; + xact_t * last_xact; anonymize_posts(); public: anonymize_posts(post_handler_ptr handler) - : item_handler(handler), last_xact(NULL) { + : item_handler(handler), next_comm_id(0), last_xact(NULL) { TRACE_CTOR(anonymize_posts, "post_handler_ptr"); } virtual ~anonymize_posts() { TRACE_DTOR(anonymize_posts); } + void render_commodity(amount_t& amt); + virtual void operator()(post_t& post); virtual void clear() { -- cgit v1.2.3