summaryrefslogtreecommitdiff
path: root/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-31 04:28:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-31 04:28:58 -0400
commit8276b51f5692796bfdf75dd64f709e0de1c7caaf (patch)
tree8f2a964080d2ee7e90400e158d3f89e9ffdbfa75 /value.h
parent208c414ab9600eca4852034a923418948629ced0 (diff)
downloadfork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.gz
fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.bz2
fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.zip
A new binary_cache_t object has been creating to manage saving and restoring a
Ledger session from a cache file. It doesn't work at all yet, though at least the major structures are in place now.
Diffstat (limited to 'value.h')
-rw-r--r--value.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/value.h b/value.h
index aac48f6f..892be37c 100644
--- a/value.h
+++ b/value.h
@@ -837,6 +837,15 @@ public:
void print(std::ostream& out, const bool relaxed = true) const;
/**
+ * Serialization methods. An amount may be deserialized from an
+ * input stream or a character pointer, and it may be serialized to
+ * an output stream. The methods used are:
+ */
+
+ void read(const char *& data);
+ void write(std::ostream& out) const;
+
+ /**
* Debugging methods.
*/