diff options
Diffstat (limited to 'textual.h')
-rw-r--r-- | textual.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/textual.h b/textual.h new file mode 100644 index 00000000..bda62f02 --- /dev/null +++ b/textual.h @@ -0,0 +1,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 |