diff options
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 12 |
1 files changed, 9 insertions, 3 deletions
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<post_t> { - temporaries_t temps; - xact_t * last_xact; + typedef std::map<commodity_t *, std::size_t> 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<post_t>(handler), last_xact(NULL) { + : item_handler<post_t>(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() { |