From 589eabd8e60636b7b250b75a5a2966034e8ba911 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Feb 2009 17:45:48 -0400 Subject: Threw away the "multiple parser" infrastructure. --- src/session.h | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'src/session.h') diff --git a/src/session.h b/src/session.h index a628454a..ce1faa1c 100644 --- a/src/session.h +++ b/src/session.h @@ -66,10 +66,9 @@ public: bool flush_on_next_data_file; int current_year; - shared_ptr commodity_pool; - ptr_list parsers; - ptr_list journals; - scoped_ptr master; + shared_ptr commodity_pool; + scoped_ptr master; + scoped_ptr journal; explicit session_t(); virtual ~session_t() { @@ -80,24 +79,13 @@ public: flush_on_next_data_file = true; } - journal_t * create_journal(); - void close_journal(journal_t * journal); - - std::size_t read_journal(journal_t& journal, - std::istream& in, + std::size_t read_journal(std::istream& in, const path& pathname, account_t * master = NULL); - std::size_t read_journal(journal_t& journal, - const path& pathname, + std::size_t read_journal(const path& pathname, account_t * master = NULL); - std::size_t read_data(journal_t& journal, - const string& master_account = ""); - - void register_parser(journal_t::parser_t * parser) { - parsers.push_back(parser); - } - void unregister_parser(journal_t::parser_t * parser); + std::size_t read_data(const string& master_account = ""); void clean_xacts(); void clean_xacts(entry_t& entry); -- cgit v1.2.3