summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-04 03:34:37 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-04 03:34:37 -0400
commit1cc33531ea7cf82e41b1ed49bf8ffc5afea084e4 (patch)
tree0ecd593b7ca164743bb9a4addf70ec76072288ce /src/journal.h
parent28da097fc245340b316539c5533d470d82f19965 (diff)
downloadfork-ledger-1cc33531ea7cf82e41b1ed49bf8ffc5afea084e4.tar.gz
fork-ledger-1cc33531ea7cf82e41b1ed49bf8ffc5afea084e4.tar.bz2
fork-ledger-1cc33531ea7cf82e41b1ed49bf8ffc5afea084e4.zip
Simplified the textual parser, and improved metadata support.
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/journal.h b/src/journal.h
index f8f53ec4..ff060d76 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -113,7 +113,9 @@ public:
TRACE_DTOR(journal_t::parser_t);
}
+#if defined(TEST_FOR_PARSER)
virtual bool test(std::istream& in) const = 0;
+#endif
virtual std::size_t parse(std::istream& in,
session_t& session,
@@ -122,18 +124,6 @@ public:
const path * original_file = NULL) = 0;
};
- class binary_parser_t : public parser_t
- {
- public:
- virtual bool test(std::istream& in) const;
-
- virtual std::size_t parse(std::istream& in,
- session_t& session,
- journal_t& journal,
- account_t * master = NULL,
- const path * original_file = NULL);
- };
-
bool valid() const;
};