
On 21 February 2013 02:20 Richard [mailto:legalize+jeeves@mail.xmission.com] wrote :-
OK, this is starting to look more like a serialization problem. You have serialized objects into a binary representation on your input stream and you need to deserialize them from the stream into your data structure.
Boost has a serialization library for this sort of thing, but I haven't used it myself.
Does this look more like what you need? http://www.boost.org/doc/libs/1_53_0/libs/serialization/doc/index.html --
Whilst the serialization library is a very useful tool and may well do what you want it might be worth having a look at Google's protocol buffers library [1] See [2] For some pros/cons of the 2 approaches Alex [1]https://developers.google.com/protocol-buffers/docs/overview [2]http://stackoverflow.com/questions/1061169/boost-serialization-vs-google-pro...