summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 02:26:06 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 02:27:42 -0500
commit34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 (patch)
tree5f2db02f896b2e50edb4fa1b143960286f6c1991 /src/journal.h
parent817f1ae1619df06f06f79f772f075041bb70f751 (diff)
downloadfork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.tar.gz
fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.tar.bz2
fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.zip
Moved journal reading code into journal_t
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/journal.h b/src/journal.h
index 60d703e6..e2af0dde 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -126,8 +126,12 @@ public:
hooks_t<xact_finalizer_t, xact_t> xact_finalize_hooks;
journal_t();
+ journal_t(const path& pathname);
+ journal_t(const string& str);
~journal_t();
+ void initialize();
+
std::list<fileinfo_t>::iterator sources_begin() {
return sources.begin();
}
@@ -171,6 +175,14 @@ public:
xact_finalize_hooks.remove_hook(finalizer);
}
+ std::size_t read(std::istream& in,
+ const path& pathname,
+ account_t * master = NULL,
+ scope_t * scope = NULL);
+ std::size_t read(const path& pathname,
+ account_t * master = NULL,
+ scope_t * scope = NULL);
+
std::size_t parse(std::istream& in,
scope_t& session_scope,
account_t * master = NULL,