File: csv.h

package info (click to toggle)
ledger 2.6.2-3.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,076 kB
  • sloc: cpp: 17,785; sh: 10,246; lisp: 2,167; makefile: 205; python: 53; perl: 11
file content (24 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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