2 #ifndef ZIPIOS_ZIPFILE_HPP
3 #define ZIPIOS_ZIPFILE_HPP
Base class for various file collections.
std::shared_ptr< FileCollection > pointer_t
std::shared_ptr< std::istream > stream_pointer_t
A shared pointer to an input stream.
A virtual class used to see in a file embedded in another.
The ZipFile class represents a collection of files.
static void saveCollectionToArchive(std::ostream &os, FileCollection &collection, std::string const &zip_comment="")
Create a Zip archive from the specified FileCollection.
ZipFile()
Initialize a ZipFile object.
static pointer_t openEmbeddedZipFile(std::string const &name)
Open a zip archive that was previously appended to another file.
virtual stream_pointer_t getInputStream(std::string const &entry_name, MatchPath matchpath=MatchPath::MATCH) override
Retrieve a pointer to a file in the Zip archive.
virtual ~ZipFile() override
Clean up the ZipFile object.
virtual pointer_t clone() const override
Create a clone of this ZipFile.
Define the zipios::FileCollection class.
The zipios namespace includes the Zipios library definitions.
Define the zipios::VirtualSeeker class.