4#include "zipios++/zipios-config.h"
7#include "zipios++/meta-iostreams.h"
55 explicit ZipFile(
const string &name,
int s_off = 0,
int e_off = 0
63 virtual void close() ;
67 MatchPath matchpath = MATCH ) ;
72 bool init( istream &_zipfile ) ;
73 bool readCentralDirectory( istream &_zipfile ) ;
74 bool readEndOfCentralDirectory( istream &_zipfile ) ;
75 bool confirmLocalHeaders( istream &_zipfile ) ;
76 void setError(
string error_str ) ;
The end of the Central directory structure.
FileCollection is an abstract baseclass that represents a collection of files.
SimpleSmartPointer is a simple reference counting smart pointer template.
VirtualSeeker is a simple class that keeps track of a set of specified 'virtual' file endings that ma...
ZipFile is a FileCollection, where the files are stored in a .zip file.
virtual ~ZipFile()
Destructor.
virtual void close()
Closes the FileCollection.
ZipFile()
Default constructor.
static ZipFile openEmbeddedZipFile(const string &name)
Opens a Zip archive embedded in another file, by writing the zip archive to the end of the file follo...
virtual FileCollection * clone() const
Create a heap allocated clone of the object this method is called for.
virtual istream * getInputStream(const ConstEntryPointer &entry)
Returns a pointer to an opened istream for the specified FileEntry.
Header file that defines FileCollection.
Header file that defines VirtualSeeker.
Header file containing classes and functions for reading the central directory and local header field...