diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-23 19:07:30 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-23 19:07:30 -0400 |
commit | 944c63e6f26d1f05ba6f63c60f510d3796872f3e (patch) | |
tree | e1fc54319c2c42c16a64e95930acaca063658863 /src/emacs.h | |
parent | 057506ab6dddbfb75d1bb29289602f375ca57df5 (diff) | |
download | fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.gz fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.bz2 fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.zip |
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.
Diffstat (limited to 'src/emacs.h')
-rw-r--r-- | src/emacs.h | 22 |
1 files changed, 11 insertions, 11 deletions
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<xact_t> +class format_emacs_posts : public item_handler<post_t> { - 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 |