Zipios++
Public Member Functions | Protected Member Functions
zipios::ZipInputStreambuf Class Reference

ZipInputStreambuf is a zip input streambuf filter. More...

#include <zipinputstreambuf.h>

Inheritance diagram for zipios::ZipInputStreambuf:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ZipInputStreambuf (streambuf *inbuf, int s_pos=-1, bool del_inbuf=false)
 ZipInputStreambuf constructor.
void closeEntry ()
 Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one).
void close ()
 Closes the streambuf.
ConstEntryPointer getNextEntry ()
 Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry.
virtual ~ZipInputStreambuf ()
 Destructor.

Protected Member Functions

virtual int underflow ()

Detailed Description

ZipInputStreambuf is a zip input streambuf filter.

Definition at line 18 of file zipinputstreambuf.h.


Constructor & Destructor Documentation

zipios::ZipInputStreambuf::ZipInputStreambuf ( streambuf *  inbuf,
int  s_pos = -1,
bool  del_inbuf = false 
) [explicit]

ZipInputStreambuf constructor.

Parameters:
inbufthe streambuf to use for input.
s_posa position to reset the inbuf to before reading. Specify -1 to read from the current position.
del_inbufif true is specified inbuf will be deleted, when the ZipInputStreambuf is destructed.

Definition at line 18 of file zipinputstreambuf.cpp.

Destructor.

Definition at line 78 of file zipinputstreambuf.cpp.


Member Function Documentation

Closes the streambuf.

Definition at line 36 of file zipinputstreambuf.cpp.

Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one).

Definition at line 23 of file zipinputstreambuf.cpp.

Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry.

Returns:
a const FileEntry * containing information about the (now) current entry.

Definition at line 39 of file zipinputstreambuf.cpp.


The documentation for this class was generated from the following files: