CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Using Boost for reading zip files

    Quote Originally Posted by Learned View Post
    So, you mean boost is not suitable in reading .zip files?
    It is "suitable". The question is do you have a zip decompressor class that is compatible with the boost iostreams library?

    Look at your code -- what makes it uncompress gzip files? Is it the boost::iostreams itself, or is it that gzip_decompressor()? It is the latter, and it's that plug-in that needs to be written or found somewhere. The boost::iostreams library is based on sources and sinks. In this case, the "source" would be a zipped file, and the "sink" is the uncompressed file.

    So nothing stops boost::iostreams from decompressing zip files -- the issue is that do you have the "plug-in" to do it, if not, can you write one based on the "source" and "sink" paradigm?

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; December 1st, 2011 at 10:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured