summaryrefslogtreecommitdiff
path: root/binary.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-20 23:28:29 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-20 23:28:29 -0400
commit0a1bce0f8073cb40c0ca51046173d98f267074ea (patch)
treefab0daf0a27c73b5becb59d05c6924db1b8214af /binary.h
parentd86a91d45b837d1d32e943107c856497897cc85c (diff)
downloadfork-ledger-0a1bce0f8073cb40c0ca51046173d98f267074ea.tar.gz
fork-ledger-0a1bce0f8073cb40c0ca51046173d98f267074ea.tar.bz2
fork-ledger-0a1bce0f8073cb40c0ca51046173d98f267074ea.zip
Re-enabled almost all of the code in main.cc.
Diffstat (limited to 'binary.h')
-rw-r--r--binary.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/binary.h b/binary.h
index 852dfe56..6a9b73ac 100644
--- a/binary.h
+++ b/binary.h
@@ -275,6 +275,19 @@ inline void write_object(std::ostream& out, const T& journal) {
void write_journal(std::ostream& out, journal_t * journal);
} // namespace binary
+
+class binary_parser_t : public parser_t
+{
+ public:
+ virtual bool test(std::istream& in) const;
+
+ virtual unsigned int parse(std::istream& in,
+ config_t& config,
+ journal_t * journal,
+ account_t * master = NULL,
+ const path * original_file = NULL);
+};
+
} // namespace ledger
#endif // BINARY_H