summaryrefslogtreecommitdiff
path: root/textual.h
blob: 4ed705bfeb4a1f944a4e6909ad8ee657dfcb154e (plain)
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 _TEXTUAL_H
#define _TEXTUAL_H

#include "ledger.h"

namespace ledger {

extern unsigned int parse_textual_ledger(std::istream& in, ledger_t * ledger,
					 account_t * master = NULL);

extern bool parse_date_mask(const char * date_str, struct std::tm * result);

extern bool parse_date(const char * date_str, std::time_t * result,
		       const int year = -1);

extern void print_textual_ledger(std::ostream& out, ledger_t * ledger,
				 bool shortcut = true);

extern void print_textual_entry(std::ostream& out, entry_t * entry,
				bool shortcut = true);

} // namespace ledger

#endif // _TEXTUAL_H