Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-03-10 11:03:38


To do something like this, you'll have to invest some effort to understand
the serialization library at more depth that is required for someone who
just want's to use it. I can't offer any "cookbook" like approach.

But I can help maybe a tiny bit.

Note that the polymorphic versions of the archives classes are the result
of application of a "polymorphic archive adaptor" to any other archive.
This "polymorphic archive adaptor" is little more than a glorified
typedef which uses the base archive type as a parameter.

So, you want to do this in two stages:

a) make your own archive - from scratch or by derivation from
an existing one - be sure to test it.

b) apply the "polymorphic archive adaptor" to make a polymorphic
version.

If you want to practice, you should be able to take the demo_fast_archive
example - which makes a derivation from binary_?archive, apply
the "polymorphic archive adaptor" and generate a
polymorphic_fast_binary_archive (or what ever). This should take
about an hour to do.

Good Luck

Robert Ramey

Robert S. Grimes wrote:
> Hi,
>
> How do I get started? I want to create a set of custom archives that
> include such features as a small header, CRC, digital signatures,
> etc. I want to put this into a DLL, so I want to go the polymorphic
> route. There are directions for creating new archives from the
> template versions, but not for the polymorphic versions. I'm not
> sure the starting point is the same, so I thought I'd ask first, as
> this is stretching my abilities a bit.
>
> Thanks,
> -Bob


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net