summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-11 21:39:09 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-11 21:39:09 +0000
commit9a14d6322ca1b1651ba31f997c1f719c1d8612e3 (patch)
tree96c35e5afe2f0465e3678e8c6980572ffcd1d3ab /ledger.h
parent4e8bd8cc5bf5292f79a7ea852d0d3953b3d4aaa6 (diff)
downloadfork-ledger-9a14d6322ca1b1651ba31f997c1f719c1d8612e3.tar.gz
fork-ledger-9a14d6322ca1b1651ba31f997c1f719c1d8612e3.tar.bz2
fork-ledger-9a14d6322ca1b1651ba31f997c1f719c1d8612e3.zip
*** empty log message ***
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/ledger.h b/ledger.h
index 83ca9693..b7fe5e06 100644
--- a/ledger.h
+++ b/ledger.h
@@ -1,5 +1,5 @@
#ifndef _LEDGER_H
-#define _LEDGER_H "$Revision: 1.24 $"
+#define _LEDGER_H "$Revision: 1.25 $"
//////////////////////////////////////////////////////////////////////
//
@@ -294,6 +294,20 @@ inline commodity::commodity(const std::string& sym, bool pre, bool sep,
assert(result.second);
}
+// Parsing routines
+
+extern book * parse_ledger(std::istream& in, regexps_map& regexps,
+ bool compute_balances);
+#ifdef READ_GNUCASH
+extern book * parse_gnucash(std::istream& in, bool compute_balances);
+#endif
+
+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 parse_price_setting(const std::string& setting);
+
} // namespace ledger
#endif // _LEDGER_H