diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-26 04:08:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-26 04:08:55 -0400 |
commit | 961b30926b3b9f2b3e9c1a99df3f25fea6b13118 (patch) | |
tree | f0f5efcc0b63f337c4838b8aad46dea2cd7926e4 /parser.h | |
parent | ee396957226e2273bc60ede7192c27038c432f24 (diff) | |
download | fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.tar.gz fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.tar.bz2 fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.zip |
--verify works again, but the memory totals at the end still need work.
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -9,10 +9,15 @@ class account_t; class journal_t; class session_t; -class parser_t +class parser_t : public noncopyable { - public: - virtual ~parser_t() {} +public: + parser_t() { + TRACE_CTOR(parser_t, ""); + } + virtual ~parser_t() { + TRACE_DTOR(parser_t); + } virtual bool test(std::istream& in) const = 0; @@ -41,8 +46,9 @@ unsigned int parse_ledger_data(session_t& session, parser_t * xml_parser = NULL, parser_t * stdin_parser = NULL); -class parse_error : public error { - public: +class parse_error : public error +{ +public: parse_error(const string& reason, error_context * ctxt = NULL) throw() : error(reason, ctxt) {} virtual ~parse_error() throw() {} |