summaryrefslogtreecommitdiff
path: root/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-31 04:28:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-31 04:28:58 -0400
commit8276b51f5692796bfdf75dd64f709e0de1c7caaf (patch)
tree8f2a964080d2ee7e90400e158d3f89e9ffdbfa75 /journal.h
parent208c414ab9600eca4852034a923418948629ced0 (diff)
downloadfork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.gz
fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.bz2
fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.zip
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.
Diffstat (limited to 'journal.h')
-rw-r--r--journal.h27
1 files changed, 11 insertions, 16 deletions
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<path> 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;