The ZipInputStream to read data from a Zip archive.
More...
#include <zipinputstream.hpp>
ZipInputStream is an istream that gets its input from a zip file. The interface was redesigned in version 2.x to be more C++ like.
- Note
- The getNextEntry() was removed because we cannot make it work here. The old implementation would let someone read all the local directory entries one after another. Only that is not correct and since this class is not publicly exposed anymore, it wouldn't be available anyway.
Definition at line 43 of file zipinputstream.hpp.
◆ ZipInputStream() [1/2]
zipios::ZipInputStream::ZipInputStream |
( |
std::string const & | filename, |
|
|
std::streampos | pos = 0 ) |
This constructor creates a ZIP file stream by attaching itself to a file as defined by the specified filename and a position to the header of the file being read.
- Parameters
-
[in] | filename | The name of a valid zip file. |
[in] | pos | position to reposition the istream to before reading. |
Definition at line 62 of file zipinputstream.cpp.
References m_izf.
◆ ZipInputStream() [2/2]
◆ ~ZipInputStream()
zipios::ZipInputStream::~ZipInputStream |
( |
| ) |
|
|
overridevirtual |
The destructor ensures that all resources used by the class get released.
Definition at line 77 of file zipinputstream.cpp.
◆ operator=()
◆ m_ifs
std::unique_ptr<std::ifstream> zipios::ZipInputStream::m_ifs |
|
private |
◆ m_izf
The documentation for this class was generated from the following files: