summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-14 11:09:06 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:49 -0400
commit77db7eb92f730af315d4bcdf831cc67acb386b58 (patch)
tree566a413e47d8d9f2f82d257c4ad3988c0a38d919 /src/session.h
parent3cc14c70d47f6f7674b587eb08b9d0e02a90e662 (diff)
downloadfork-ledger-77db7eb92f730af315d4bcdf831cc67acb386b58.tar.gz
fork-ledger-77db7eb92f730af315d4bcdf831cc67acb386b58.tar.bz2
fork-ledger-77db7eb92f730af315d4bcdf831cc67acb386b58.zip
Added initial support for using builders from the various parsers; at the moment is just uses the xml_writer_t builder to output the contents of the ledger journal as XML
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/session.h b/src/session.h
index 4027bc95..cf75b600 100644
--- a/src/session.h
+++ b/src/session.h
@@ -148,15 +148,11 @@ class session_t : public xml::xpath_t::scope_t
checked_delete(journal);
}
- unsigned int read_journal(std::istream& in,
- journal_t * journal,
- account_t * master = NULL,
- const optional<path>& original = none);
-
- unsigned int read_journal(const path& pathname,
- journal_t * journal,
- account_t * master = NULL,
- const optional<path>& original = none);
+ void read_journal(std::istream& in,
+ const path& pathname,
+ xml::builder_t& builder);
+ void read_journal(const path& pathname,
+ xml::builder_t& builder);
void read_init();