summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 17:45:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 17:45:48 -0400
commit589eabd8e60636b7b250b75a5a2966034e8ba911 (patch)
treef9db5c14df14dbc2db3ba0c96dff34c8e670a311 /src/session.h
parent9380d73646bcd79c4f24581b2212f684cea70138 (diff)
downloadfork-ledger-589eabd8e60636b7b250b75a5a2966034e8ba911.tar.gz
fork-ledger-589eabd8e60636b7b250b75a5a2966034e8ba911.tar.bz2
fork-ledger-589eabd8e60636b7b250b75a5a2966034e8ba911.zip
Threw away the "multiple parser" infrastructure.
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h24
1 files changed, 6 insertions, 18 deletions
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_t> commodity_pool;
- ptr_list<journal_t::parser_t> parsers;
- ptr_list<journal_t> journals;
- scoped_ptr<account_t> master;
+ shared_ptr<commodity_pool_t> commodity_pool;
+ scoped_ptr<account_t> master;
+ scoped_ptr<journal_t> 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);