|
USD_API | UsdZipFile () |
| Create an invalid UsdZipFile object.
|
|
USD_API | operator bool () const |
| Return true if this object is valid, false otherwise.
|
|
USD_API Iterator | begin () const |
| Returns iterator pointing to the first file in the zip archive.
|
|
Iterator | cbegin () const |
| Returns iterator pointing to the first file in the zip archive.
|
|
USD_API Iterator | end () const |
| Returns end iterator for this zip archive.
|
|
Iterator | cend () const |
| Returns end iterator for this zip archive.
|
|
USD_API Iterator | Find (const std::string &path) const |
| Returns iterator to the file with the given path in this zip archive, or end() if no such file exists.
|
|
USD_API void | DumpContents () const |
| Print out listing of contents of this zip archive to stdout.
|
|
Class for reading a zip file.
This class is primarily intended to support the .usdz file format. It is not a general-purpose zip reader, as it does not implement the full zip file specification. In particular:
- This class does not natively support decompressing data from a zip archive. Clients may access the data exactly as stored in the file and perform their own decompression if desired.
- This class does not rely on the central directory in order to read the contents of the file. This allows it to operate on partial zip archives. However, this also means it may handle certain zip files incorrectly. For example, if a file was deleted from a zip archive by just removing its central directory header, that file will still be found by this class.
Definition at line 56 of file zipFile.h.