summaryrefslogtreecommitdiff
path: root/binary.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-20 05:03:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-20 05:03:54 -0400
commit52fc9f2e4499e75d17e7f12d32a8391054d8634a (patch)
tree164b6b4cdb6717f2df7d154793499e90bdd3ae3e /binary.h
parent59f6ffb863b7121b8a49c13dd64f9943ddaf7ed0 (diff)
downloadfork-ledger-52fc9f2e4499e75d17e7f12d32a8391054d8634a.tar.gz
fork-ledger-52fc9f2e4499e75d17e7f12d32a8391054d8634a.tar.bz2
fork-ledger-52fc9f2e4499e75d17e7f12d32a8391054d8634a.zip
Brought in the final round of 3.0 code, although it does not compile yet:
report, session, parts of xpath, main, journal, option.
Diffstat (limited to 'binary.h')
-rw-r--r--binary.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binary.h b/binary.h
index 0a8e1520..852dfe56 100644
--- a/binary.h
+++ b/binary.h
@@ -205,6 +205,9 @@ inline string read_string(const char *& data) {
return temp;
}
+void read_string(std::istream& in, optional<string>& str);
+void read_string(const char *& data, optional<string>& str);
+
template <typename T>
inline void write_number_nocheck(std::ostream& out, T num) {
@@ -262,6 +265,7 @@ void write_long(std::ostream& out, T num)
}
void write_string(std::ostream& out, const string& str);
+void write_string(std::ostream& out, const optional<string>& str);
template <typename T>
inline void write_object(std::ostream& out, const T& journal) {