zipios++
2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
|
The ZipInputStream to read data from a Zip archive. More...
#include <zipinputstream.hpp>
Public Member Functions | |
ZipInputStream (std::string const &filename, std::streampos pos=0) | |
Initialize a ZipInputStream from a filename and position. More... | |
ZipInputStream (ZipInputStream const &src)=delete | |
virtual | ~ZipInputStream () override |
Clean up the input stream. More... | |
ZipInputStream const & | operator= (ZipInputStream const &src)=delete |
Private Attributes | |
std::unique_ptr< std::ifstream > | m_ifs |
std::unique_ptr < ZipInputStreambuf > | m_izf |
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.
Definition at line 43 of file zipinputstream.hpp.
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.
[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.
|
delete |
|
overridevirtual |
The destructor ensures that all resources used by the class get released.
Definition at line 77 of file zipinputstream.cpp.
|
delete |
|
private |
Definition at line 52 of file zipinputstream.hpp.
|
private |
Definition at line 53 of file zipinputstream.hpp.
Referenced by ZipInputStream().