Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-02-14 13:51:32


"Murray, Peter C" wrote:
>
> Has anyone thought about a standard compression library for boost? Maybe
> something comapatable with gzip or maybe even a number of compression
> policies?

Sounds like a good idea.

If you want to limit yourself to just a gzip-like compressor, that's fine,
but should be explicitly stated. Someone may want to look at a general
approach how streaming and compression/encryption/checksumming can be
cleanly separated. However, that separation is not a requirement for your
submission of a gzip-like compressor.

I believe the compressor should be implemented as a streambuf filter,
i.e. taking another streambuf as its source/drain for compressed data.

basic_streambuf has two template parameters, charT and Traits, which you
may want to observe. In particular, Traits::compare and Traits::assign seem
to be useful.

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk