Simple Examples
This section includes a few simple examples on how to use the Serialization package. The code in Declaring the Streaming Operators through Streaming the Serialized Object shows how to add basic serialization support to the class real_property. The code is taken from real_property.h, real_property.cpp, and real_estate.cpp in the examples\serial\simple directory. The examples in Writing to and Reading from Compact Object Streams and Writing to and Reading from Compact Object Streams With Virtual Streams show two ways to stream a serialized object: compact object streams working with data streams from the Streams package, and compact object streams working with virtual streams from the Essential Tools Module.