zipios 2.3.4
Zipios -- a small C++ library providing easy access to .zip files.
|
The ZipInputStream to read data from a Zip archive. More...
#include <zipinputstream.hpp>
Public Member Functions | |
ZipInputStream (std::istream &is) | |
ZipInputStream (std::string const &filename, std::streampos pos=0) | |
Initialize a ZipInputStream from a filename and position. | |
ZipInputStream (ZipInputStream const &rhs)=delete | |
virtual | ~ZipInputStream () override |
Clean up the input stream. | |
ZipInputStream & | operator= (ZipInputStream const &rhs)=delete |
Private Attributes | |
std::unique_ptr< std::istream > | m_ifs = std::unique_ptr<std::istream>() |
std::istream & | m_ifs_ref |
std::unique_ptr< ZipInputStreambuf > | m_izf = std::unique_ptr<ZipInputStreambuf>() |
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.
zipios::ZipInputStream::ZipInputStream | ( | std::istream & | is | ) |
Definition at line 73 of file zipinputstream.cpp.
References m_izf.
|
delete |
|
overridevirtual |
The destructor ensures that all resources used by the class get released.
Definition at line 88 of file zipinputstream.cpp.
|
delete |
|
private |
Definition at line 54 of file zipinputstream.hpp.
|
private |
Definition at line 55 of file zipinputstream.hpp.
|
private |
Definition at line 56 of file zipinputstream.hpp.
Referenced by ZipInputStream(), and ZipInputStream().