Zipios++
|
ZipInputStreambuf is a zip input streambuf filter. More...
#include <zipinputstreambuf.h>
Public Member Functions | |
ZipInputStreambuf (streambuf *inbuf, int s_pos=-1, bool del_inbuf=false) | |
ZipInputStreambuf constructor. More... | |
void | closeEntry () |
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one). More... | |
void | close () |
Closes the streambuf. More... | |
ConstEntryPointer | getNextEntry () |
Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry. More... | |
virtual | ~ZipInputStreambuf () |
Destructor. More... | |
![]() | |
InflateInputStreambuf (streambuf *inbuf, int s_pos=-1, bool del_inbuf=false) | |
InflateInputStreambuf constructor. More... | |
bool | reset (int stream_position=-1) |
Resets the zlib stream and purges input and output buffers. More... | |
![]() | |
FilterInputStreambuf (streambuf *inbuf, bool del_inbuf=false) | |
Constructor. More... | |
virtual | ~FilterInputStreambuf () |
Destructor. More... | |
Protected Member Functions | |
virtual int | underflow () |
Additional Inherited Members | |
![]() | |
const int | _outvecsize |
vector< char > | _outvec |
![]() | |
int | _s_pos |
streambuf * | _inbuf |
bool | _del_inbuf |
ZipInputStreambuf is a zip input streambuf filter.
Definition at line 18 of file zipinputstreambuf.h.
|
explicit |
ZipInputStreambuf constructor.
inbuf | the streambuf to use for input. |
s_pos | a position to reset the inbuf to before reading. Specify -1 to read from the current position. |
del_inbuf | if true is specified inbuf will be deleted, when the ZipInputStreambuf is destructed. |
Definition at line 18 of file zipinputstreambuf.cpp.
|
virtual |
Destructor.
Definition at line 82 of file zipinputstreambuf.cpp.
void zipios::ZipInputStreambuf::close | ( | ) |
Closes the streambuf.
Definition at line 42 of file zipinputstreambuf.cpp.
void zipios::ZipInputStreambuf::closeEntry | ( | ) |
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one).
Definition at line 29 of file zipinputstreambuf.cpp.
ConstEntryPointer zipios::ZipInputStreambuf::getNextEntry | ( | ) |
Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry.
Definition at line 45 of file zipinputstreambuf.cpp.