API related to ZIP archive files.
Functions | |
Archive * | Common::makeZipArchive (const Path &name, bool flattenTree=false) |
Archive * | Common::makeZipArchive (const FSNode &node, bool flattenTree=false) |
Archive * | Common::makeZipArchive (SeekableReadStream *stream, bool flattenTree=false) |
This factory method creates an Archive instance corresponding to the content of the ZIP compressed file with the given name.
May return 0 in case of a failure.
This factory method creates an Archive instance corresponding to the content of the ZIP compressed file with the given name.
May return 0 in case of a failure.
Archive* Common::makeZipArchive | ( | SeekableReadStream * | stream, |
bool | flattenTree = false |
||
) |
This factory method creates an Archive instance corresponding to the content of the given ZIP compressed datastream. This takes ownership of the stream, in particular, it is deleted when the ZipArchive is deleted.
May return 0 in case of a failure. In this case stream will still be deleted.