Boost logo

Boost Users :

From: Andrew Holden (aholden_at_[hidden])
Date: 2007-08-09 11:28:35


Unfortunately, this is beyond the capability of the gzip file format.
You might try looking up the "tar" file format (a good starting point
might be http://en.wikipedia.org/wiki/Tar.gz).

One would normally use tar to group the files together into a single
data stream, and then use gzip to compress that stream.

> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Robert Caldecott
> Sent: Thursday, August 09, 2007 6:33 AM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] boost::iostreams::gzip_compressor and
> multiple files
>
> I have been experimenting with the boost::iostreams to create
> a gzip file, for example the following works fine:
>
> using namespace boost::iostreams;
> filtering_ostream out;
> out.push(gzip_compressor());
> out.push(file_sink("test.gz", std::ios::binary)); out <<
> "This is a gz file\n";
>
> This will create a gz file containing a single compressed
> file (called 'test').
> I can change the name of this internal file using a
> gzip_params struct and all is well.
>
> However, I want to create a single gzip file that contains
> multiple compressed files, each with a different filename.
> Does anyone know how to achieve this?
>
> Thanks in advance.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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