summaryrefslogtreecommitdiff
path: root/csv.h
diff options
context:
space:
mode:
Diffstat (limited to 'csv.h')
-rw-r--r--csv.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/csv.h b/csv.h
new file mode 100644
index 00000000..3b370631
--- /dev/null
+++ b/csv.h
@@ -0,0 +1,24 @@
+#ifndef _CSV_H
+#define _CSV_H
+
+#include "journal.h"
+#include "format.h"
+
+namespace ledger {
+
+class format_csv_transactions : public item_handler<transaction_t>
+{
+ protected:
+ std::ostream& out;
+
+ public:
+ format_csv_transactions(std::ostream& _out) : out(_out) {}
+ virtual void flush() {
+ out.flush();
+ }
+ virtual void operator()(transaction_t& xact);
+};
+
+} // namespace ledger
+
+#endif // _REPORT_H