From 8276b51f5692796bfdf75dd64f709e0de1c7caaf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 31 Jul 2008 04:28:58 -0400 Subject: A new binary_cache_t object has been creating to manage saving and restoring a Ledger session from a cache file. It doesn't work at all yet, though at least the major structures are in place now. --- journal.h | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'journal.h') diff --git a/journal.h b/journal.h index cfb52cbe..e61ab114 100644 --- a/journal.h +++ b/journal.h @@ -52,8 +52,6 @@ public: entries_list entries; paths_list sources; optional price_db; - char * item_pool; - char * item_pool_end; auto_entries_list auto_entries; period_entries_list period_entries; @@ -80,17 +78,15 @@ public: entry_finalize_hooks.remove_hook(finalizer); } - bool valid() const; - -/** - * @class journal_t::parser_t - * - * @brief Provides an abstract interface for writing journal parsers. - * - * Any data format for Ledger data is possible, as long as it can be parsed - * into a journal_t data tree. This class provides the basic interface which - * must be implemented by every such journal parser. - */ + /** + * @class journal_t::parser_t + * + * @brief Provides an abstract interface for writing journal parsers. + * + * Any data format for Ledger data is possible, as long as it can be parsed + * into a journal_t data tree. This class provides the basic interface which + * must be implemented by every such journal parser. + */ class parser_t : public noncopyable { public: @@ -122,9 +118,6 @@ public: const path * original_file = NULL); }; - unsigned int read(std::istream& in, const path& file, account_t * master); - void write(std::ostream& out); - class parse_error : public error { public: @@ -132,6 +125,8 @@ public: : error(reason, ctxt) {} virtual ~parse_error() throw() {} }; + + bool valid() const; }; extern const string version; -- cgit v1.2.3