diff options
| author | John Wiegley <johnw@newartisans.com> | 2008-07-22 02:23:45 -0400 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2008-07-22 02:23:45 -0400 |
| commit | 4bc29e1351faeba56cbfc1146fa1af33eba15f9d (patch) | |
| tree | 0b7102725c562816a1fc7367601e0026bf3b2bac /journal.h | |
| parent | e41dbc204a5269d89b8909546d44927a58e29675 (diff) | |
| download | ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.gz ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.bz2 ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.zip | |
A great deal of reorganization to restore the old parsing code (since the
newer XML stuff was pulled).
Diffstat (limited to 'journal.h')
| -rw-r--r-- | journal.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -399,9 +399,12 @@ typedef std::list<period_entry_t *> period_entries_list; typedef std::list<path> paths_list; typedef std::list<string> strings_list; +class session_t; + class journal_t { public: + session_t * owner; account_t * master; account_t * basket; entries_list entries; @@ -416,7 +419,8 @@ class journal_t std::list<entry_finalizer_t *> entry_finalize_hooks; - journal_t() : basket(NULL), item_pool(NULL), item_pool_end(NULL) { + journal_t(session_t * _owner) : + owner(_owner), basket(NULL), item_pool(NULL), item_pool_end(NULL) { TRACE_CTOR(journal_t, ""); master = new account_t(NULL, ""); master->journal = this; |
