HDK
|
#include <zipFile.h>
Classes | |
class | FileInfo |
class | Iterator |
Public Member Functions | |
USD_API | UsdZipFile () |
Create an invalid UsdZipFile object. More... | |
USD_API | ~UsdZipFile () |
USD_API | operator bool () const |
Return true if this object is valid, false otherwise. More... | |
USD_API Iterator | begin () const |
Returns iterator pointing to the first file in the zip archive. More... | |
Iterator | cbegin () const |
Returns iterator pointing to the first file in the zip archive. More... | |
USD_API Iterator | end () const |
Returns end iterator for this zip archive. More... | |
Iterator | cend () const |
Returns end iterator for this zip archive. More... | |
USD_API Iterator | Find (const std::string &path) const |
USD_API void | DumpContents () const |
Static Public Member Functions | |
static USD_API UsdZipFile | Open (const std::string &filePath) |
static USD_API UsdZipFile | Open (const std::shared_ptr< ArAsset > &asset) |
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:
USD_API UsdZipFile::UsdZipFile | ( | ) |
Create an invalid UsdZipFile object.
USD_API UsdZipFile::~UsdZipFile | ( | ) |
Returns iterator pointing to the first file in the zip archive.
|
inline |
|
inline |
Print out listing of contents of this zip archive to stdout. For diagnostic purposes only.
USD_API Iterator UsdZipFile::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.
|
static |
Opens the zip archive at filePath
. Returns invalid object on error.
|
static |
Opens the zip archive asset
. Returns invalid object on error.
|
inlineexplicit |