summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-12 14:29:08 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-12 14:29:08 -0500
commitbfd9ecf2af079894f95bac365818c9548f561039 (patch)
treedce7e13ec7ad8f18bc628efe511d17e94bc3e16d /src/journal.h
parenta034435c4287aba7fd32ed63a745e560350c924a (diff)
parent49a356f2d260ed0cc071ca1aa82027bd325b0b8b (diff)
downloadfork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.tar.gz
fork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.tar.bz2
fork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.zip
Merge branch 'next'
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/journal.h b/src/journal.h
index 78269348..f7124736 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -43,15 +43,14 @@
#define _JOURNAL_H
#include "utils.h"
-#include "hooks.h"
#include "times.h"
namespace ledger {
class commodity_pool_t;
+class xact_base_t;
class xact_t;
class auto_xact_t;
-class xact_finalizer_t;
class period_xact_t;
class account_t;
class scope_t;
@@ -114,7 +113,6 @@ public:
bool was_loaded;
shared_ptr<commodity_pool_t> commodity_pool;
- hooks_t<xact_finalizer_t, xact_t> xact_finalize_hooks;
journal_t();
journal_t(const path& pathname);
@@ -138,6 +136,7 @@ public:
account_t * find_account_re(const string& regexp);
bool add_xact(xact_t * xact);
+ void extend_xact(xact_base_t * xact);
bool remove_xact(xact_t * xact);
xacts_list::iterator xacts_begin() {
@@ -159,13 +158,6 @@ public:
return period_xacts.end();
}
- void add_xact_finalizer(xact_finalizer_t * finalizer) {
- xact_finalize_hooks.add_hook(finalizer);
- }
- void remove_xact_finalizer(xact_finalizer_t * finalizer) {
- xact_finalize_hooks.remove_hook(finalizer);
- }
-
std::size_t read(std::istream& in,
const path& pathname,
account_t * master = NULL,
@@ -180,6 +172,7 @@ public:
const path * original_file = NULL,
bool strict = false);
+ bool has_xdata();
void clear_xdata();
bool valid() const;