summaryrefslogtreecommitdiff
path: root/xmlparse.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:00 -0400
commit42f43b7686038e4cbca16d8d2118b139544e6de3 (patch)
tree52c5473401c57282242d66b8dd75f4c07bf41d07 /xmlparse.h
parentc7b4370ff9c8ab5c96f15b1e712e6db6bdab6324 (diff)
downloadfork-ledger-42f43b7686038e4cbca16d8d2118b139544e6de3.tar.gz
fork-ledger-42f43b7686038e4cbca16d8d2118b139544e6de3.tar.bz2
fork-ledger-42f43b7686038e4cbca16d8d2118b139544e6de3.zip
Check in all changes made so far toward 3.0.
Diffstat (limited to 'xmlparse.h')
-rw-r--r--xmlparse.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/xmlparse.h b/xmlparse.h
new file mode 100644
index 00000000..5670bcc2
--- /dev/null
+++ b/xmlparse.h
@@ -0,0 +1,25 @@
+#ifndef _XMLPARSE_H
+#define _XMLPARSE_H
+
+#include "parser.h"
+
+namespace ledger {
+
+#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
+
+class xml_parser_t : public parser_t
+{
+ public:
+ virtual bool test(std::istream& in) const;
+
+ virtual unsigned int parse(std::istream& in,
+ journal_t * journal,
+ account_t * master = NULL,
+ const std::string * original_file = NULL);
+};
+
+#endif
+
+} // namespace ledger
+
+#endif // _XMLPARSE_H