summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-26 04:08:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-26 04:08:55 -0400
commit961b30926b3b9f2b3e9c1a99df3f25fea6b13118 (patch)
treef0f5efcc0b63f337c4838b8aad46dea2cd7926e4 /parser.h
parentee396957226e2273bc60ede7192c27038c432f24 (diff)
downloadfork-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.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/parser.h b/parser.h
index 2f1a5469..3815780c 100644
--- a/parser.h
+++ b/parser.h
@@ -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() {}