2#ifndef ZIPIOS_ZIPFILE_HPP
3#define ZIPIOS_ZIPFILE_HPP
59 std::string
const & entry_name
64 , std::string
const & zip_comment = std::string());
67 void init(std::istream & is);
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 pointer_t openEmbeddedZipFile(std::string const &filename)
Open a zip archive that was previously appended to another file.
ZipFile()
Initialize a ZipFile object.
static void saveCollectionToArchive(std::ostream &os, FileCollection &collection, std::string const &zip_comment=std::string())
Create a Zip archive from the specified FileCollection.
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.
void init(std::istream &is)
Initialize the ZipFile from the specified input stream.
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.