From 944c63e6f26d1f05ba6f63c60f510d3796872f3e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Feb 2009 19:07:30 -0400 Subject: The Great Renaming, Part II The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset. --- src/emacs.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/emacs.h') diff --git a/src/emacs.h b/src/emacs.h index 868a899b..dec7d183 100644 --- a/src/emacs.h +++ b/src/emacs.h @@ -55,30 +55,30 @@ namespace ledger { * * Long. */ -class format_emacs_xacts : public item_handler +class format_emacs_posts : public item_handler { - format_emacs_xacts(); + format_emacs_posts(); protected: std::ostream& out; - entry_t * last_entry; + xact_t * last_xact; public: - format_emacs_xacts(std::ostream& _out) - : out(_out), last_entry(NULL) { - TRACE_CTOR(format_emacs_xacts, "std::ostream&"); + format_emacs_posts(std::ostream& _out) + : out(_out), last_xact(NULL) { + TRACE_CTOR(format_emacs_posts, "std::ostream&"); } - ~format_emacs_xacts() { - TRACE_DTOR(format_emacs_xacts); + ~format_emacs_posts() { + TRACE_DTOR(format_emacs_posts); } - virtual void write_entry(entry_t& entry); + virtual void write_xact(xact_t& xact); virtual void flush() { - if (last_entry) + if (last_xact) out << "))\n"; out.flush(); } - virtual void operator()(xact_t& xact); + virtual void operator()(post_t& post); }; } // namespace ledger -- cgit v1.2.3