From 8276b51f5692796bfdf75dd64f709e0de1c7caaf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 31 Jul 2008 04:28:58 -0400 Subject: 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. --- value.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'value.h') diff --git a/value.h b/value.h index aac48f6f..892be37c 100644 --- a/value.h +++ b/value.h @@ -836,6 +836,15 @@ public: const int latter_width = -1) const; 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. */ -- cgit v1.2.3