diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-30 19:03:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-30 19:03:28 -0400 |
commit | 63aa8992a81dfaececa4a9b38ba8daf29b57912e (patch) | |
tree | 808871837734f3779c369e71774f30fde7d89034 /src/journal.h | |
parent | a3799eebdb682162eb1edb3706a6ff1097b12f41 (diff) | |
download | fork-ledger-63aa8992a81dfaececa4a9b38ba8daf29b57912e.tar.gz fork-ledger-63aa8992a81dfaececa4a9b38ba8daf29b57912e.tar.bz2 fork-ledger-63aa8992a81dfaececa4a9b38ba8daf29b57912e.zip |
Moved ownership of master account into journal_t
The journal_t now completely represents the data part of a session.
Diffstat (limited to 'src/journal.h')
-rw-r--r-- | src/journal.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/journal.h b/src/journal.h index 809da25d..4ad10fd3 100644 --- a/src/journal.h +++ b/src/journal.h @@ -53,6 +53,7 @@ namespace ledger { typedef std::list<path> paths_list; +class commodity_pool_t; class xact_t; class auto_xact_t; class xact_finalizer_t; @@ -72,18 +73,16 @@ typedef std::list<period_xact_t *> period_xacts_list; class journal_t : public noncopyable { public: - account_t * master; - account_t * basket; - xacts_list xacts; - - auto_xacts_list auto_xacts; - period_xacts_list period_xacts; + account_t * master; + account_t * basket; + xacts_list xacts; + auto_xacts_list auto_xacts; + period_xacts_list period_xacts; + shared_ptr<commodity_pool_t> commodity_pool; hooks_t<xact_finalizer_t, xact_t> xact_finalize_hooks; - journal_t(account_t * _master = NULL) : master(_master) { - TRACE_CTOR(journal_t, ""); - } + journal_t(); ~journal_t(); // These four methods are delegated to the current session, since all |