Is there a library in boost that can be used to unzip a zip file?
相关问题
- how to call a C++ dll from C# windows application
- efficiently calling unmanaged method taking unmana
- boost::process system leaking file descriptors
- Why is my COM factory never released during the pr
- Reading data from a SAS data source in .Net
相关文章
- C++: Callback typedefs with __stdcall in MSVC
- boost split with a single character or just one st
- Is it possible to check whether you are building f
- Which VC++ redistributable package to choose (x86
- Identify which file has included some particular h
- boost serialization and register_type
- Forwarding a shared_ptr without class declaration
- init boost::optional of non-copyable object
I don't think boost can do it.
I'd suggest zlib, but you might find it hard to use. If you need a very simple (yet powerful) C++ wrapper (handling zip files directly unlike zlib), then ZIP Archive will do the trick ;) (the code needs a few adjustments but works well, I've ported it to Visual C++ 2008 and removed the ATL dependency, it's pretty straightforward).
Why does it have to be boost? Can you not use zlib?
boost::iostreams
has a gzip filter that you can use. As a point of note, it only works on individually compressed files, not archives. In other words, it does not understand it if the archive has an internal directory structure (multiple files) instead of just compressing a single file. If you need the full archive functionality, then zlib is your best bet.