diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-27 10:08:42 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:31 -0400 |
commit | 0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f (patch) | |
tree | 750d64f6817282a6f4744058f73164a2996f6b03 /journal.h | |
parent | d01629148383261d7944e91fd2ac67b334a6834d (diff) | |
download | fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.gz fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.bz2 fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.zip |
Restructured the code to use the new utility code in utils.h.
Diffstat (limited to 'journal.h')
-rw-r--r-- | journal.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -85,6 +85,7 @@ class transaction_t bool valid() const; }; +#if 0 class xact_context : public file_context { public: const transaction_t& xact; @@ -93,6 +94,7 @@ class xact_context : public file_context { const string& desc = "") throw(); virtual ~xact_context() throw() {} }; +#endif class journal_t; @@ -196,6 +198,7 @@ struct entry_finalizer_t { void print_entry(std::ostream& out, const entry_base_t& entry, const string& prefix = ""); +#if 0 class entry_context : public error_context { public: const entry_base_t& entry; @@ -207,14 +210,9 @@ class entry_context : public error_context { virtual void describe(std::ostream& out) const throw(); }; +#endif -class balance_error : public error { - public: - balance_error(const string& _reason, - error_context * _ctxt = NULL) throw() - : error(_reason, _ctxt) {} - virtual ~balance_error() throw() {} -}; +DECLARE_EXCEPTION(balance_exception); class auto_entry_t : public entry_base_t |