Main Page   Class Hierarchy   Compound List   File List   Compound Members  

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 Methods

 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...


Protected Methods

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:
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.

zipios::ZipInputStreambuf::~ZipInputStreambuf ( ) [virtual]
 

Destructor.

Definition at line 81 of file zipinputstreambuf.cpp.


Member Function Documentation

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.

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

Definition at line 45 of file zipinputstreambuf.cpp.

int zipios::ZipInputStreambuf::underflow ( ) [protected, virtual]
 

Reimplemented from zipios::InflateInputStreambuf.

Definition at line 85 of file zipinputstreambuf.cpp.


The documentation for this class was generated from the following files:
Generated at Tue Aug 14 20:39:59 2001 for Zipios++ by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000