summaryrefslogtreecommitdiff
path: root/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-22 02:23:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-22 02:23:45 -0400
commit4bc29e1351faeba56cbfc1146fa1af33eba15f9d (patch)
tree0b7102725c562816a1fc7367601e0026bf3b2bac /session.h
parente41dbc204a5269d89b8909546d44927a58e29675 (diff)
downloadfork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.gz
fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.tar.bz2
fork-ledger-4bc29e1351faeba56cbfc1146fa1af33eba15f9d.zip
A great deal of reorganization to restore the old parsing code (since the
newer XML stuff was pulled).
Diffstat (limited to 'session.h')
-rw-r--r--session.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/session.h b/session.h
index ddd0c484..7426fe7f 100644
--- a/session.h
+++ b/session.h
@@ -85,7 +85,7 @@ class session_t : public expr::symbol_scope_t
}
journal_t * create_journal() {
- journal_t * journal = new journal_t;
+ journal_t * journal = new journal_t(this);
journals.push_back(journal);
return journal;
}
@@ -101,19 +101,18 @@ class session_t : public expr::symbol_scope_t
checked_delete(journal);
}
-#if 0
- std::size_t read_journal(std::istream& in,
- const path& pathname,
- xml::builder_t& builder);
- std::size_t read_journal(const path& pathname,
- xml::builder_t& builder);
+ std::size_t read_journal(journal_t& journal,
+ std::istream& in,
+ const path& pathname,
+ account_t * master = NULL);
+ std::size_t read_journal(journal_t& journal,
+ const path& pathname,
+ account_t * master = NULL);
void read_init();
- std::size_t read_data(xml::builder_t& builder,
- journal_t * journal,
- const string& master_account = "");
-#endif
+ std::size_t read_data(journal_t& journal,
+ const string& master_account = "");
void register_parser(parser_t * parser) {
parsers.push_back(parser);