|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2004-04-20 09:17:56
Matthias Troyer
>On Apr 17, 2004, at 8:13 AM, Robert Ramey wrote:
>> Matthias Troyer wrote:
>>> 2. which functions do I need to implement in my archive class to skip
>>> writing the standard preamble that your archives write? Is it just
>>> the init function or are there more functions?
>>
>> Depending on the implementation traits for each class, there may be a
>> preamble written by the serialization library. This contains
>> information such as version number, class id info, perhaps export key,
>> etc required by the s library to reconstruct a faithful reproduction
>> of the original data.
>> If there is a preamble, there is no information in that can be
>> discarded and still reproduce the original data.
>I was wondering about the preamble written at the start of the archive, not
>the per-class information.
An archive preamble is entirely optional. The common_?archive base class
includes the init function which all the included archives call in their
constructor. There is no requirement to call this function however in the
constructors of your own archives.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk