Opened 21 years ago

Closed 15 years ago

Last modified 12 years ago

#930 closed Feature Requests (fixed)

iostream and zlib

Reported by: jorma9@… Owned by: Douglas Gregor
Milestone: Component: iostreams
Version: None Severity: Optimization
Keywords: Cc: technews@…

Description (last modified by Dave Abrahams)

I've successfully used (only slightly modified) classes
gzifstream and
gzofstream in SGI IRIX and GNU Linux environments.  The
code was
obtained from directory zlib-1.1.3/contrib/iostream of
http://www.info-zip.org/pub/infozip/zlib/zlib.tar.gz .

Now it seems to me that the code won't compile with
standard iostream classes.  Has anyone made the
necessary changes to compile it ? Or, does someone know
that it won't be possible to make it work again ? Or,
is there a better solution for that need, ie. to have a
pair of classes derived from istream and ostream that
allow compression and uncompression on the fly ?

Yours,

Jorma Laaksonen

Change History (8)

comment:1 by nobody, 21 years ago

Logged In: NO 

I wrote a class which compiles with the standard library.
(gcc-3.0) It follows mainly the book from Langer and Kreft
Standard C++ IOStreams and Locales. It works for me 
but it could need further testing and perhaps a bit of 
optimisation. If your are interested just send an email.

Yours Peter Maunz


comment:2 by jmaurer, 21 years ago

Logged In: YES 
user_id=53943

I believe a facility like this is useful.  Please join the
boost mailing list, hosted on www.yahoogroups.com, and post
your suggestion there.

Jens Maurer

comment:3 by Dave Abrahams, 15 years ago

Cc: technews@… added
Description: modified (diff)
Reporter: changed from jorma9 to jorma9@…
Severity: Showstopper

This is probably outdated; if Jonathan Turkanis doesn't address this ticket soon it should probably be closed.

comment:4 by Peter Dimov, 15 years ago

Severity: ShowstopperOptimization

comment:5 by Daryle Walker, 15 years ago

Component: Noneiostreams

comment:6 by Marshall Clow, 15 years ago

Owner: changed from nobody to Douglas Gregor
Status: assignednew

comment:7 by anonymous, 15 years ago

the iostreams library currently supports gzip, bzip2 and zlib compression via filters which can applied to the streams.

I am not sure what this (6 year old) case is requesting which might be any different than is what exists today in 1.34.x

comment:8 by Marshall Clow, 15 years ago

Resolution: Nonefixed
Status: newclosed
Note: See TracTickets for help on using tickets.