Boost logo

Boost Users :

Subject: Re: [Boost-users] concat files for compression
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-06-12 17:56:23


Am 12.06.2010 um 23:12 schrieb Brian Wood:

> Kraus Philipp:
>> On 2010-06-11 09:34:27 +0200, Roland Bock said:
>>>
>>> Hi,
>>>
>>> I see two options:
>>>
>>> a) You write a new multi_file_source class which can any number of
>>> input
>>> files.
>>>
>>> b) Instead of working with a source, you could work with a sink at
>>> the
>>> other end of the pipeline. Then just copy the content of the two
>>> files
>>> into the stream.
>>
>> Hi,
>>
>> I think I would like to use the second idea, but how I can do this?
>>
>
> I have some classes -- SendCompressedBuffer and
> ReceiveCompressedBuffer -- that may be helpful.
> SendCompressedBuffer uses bzip to compress data
> before it forwards the data. It is able to marshall files
> and other data. There's an archive -- fear not, it's all of
> 17,517 bytes -- that you can download and has the classes
> I mentioned.

Thanks I will take a look at your classes, biut I think, that you
"seperate" files.
I need this one:

cat first_file > temp
cat second_file >> temp
gzip temp

The zip functions is implementated but I don't know how to create the
"cat" into one
stream.

Phil


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