24 #ifndef PXR_USD_USD_ZIP_FILE_H
25 #define PXR_USD_USD_ZIP_FILE_H
81 explicit operator bool()
const {
return static_cast<bool>(_impl); }
142 Iterator&
operator=(
const Iterator& rhs);
186 friend class UsdZipFile;
190 std::unique_ptr<_IteratorData> _data;
202 Iterator
end()
const;
220 std::shared_ptr<_Impl> _impl;
251 UsdZipFileWriter&
operator=(
const UsdZipFileWriter&) =
delete;
256 UsdZipFileWriter&
operator=(UsdZipFileWriter&& rhs);
260 explicit operator bool()
const {
return static_cast<bool>(_impl); }
291 std::unique_ptr<_Impl> _impl;
296 #endif // PXR_USD_USD_ZIP_FILE_H
USD_API Iterator begin() const
Returns iterator pointing to the first file in the zip archive.
std::ptrdiff_t difference_type
static USD_API UsdZipFileWriter CreateNew(const std::string &filePath)
size_t crc
CRC-32 value of the uncompressed file.
GLsizei const GLchar *const * string
USD_API bool operator==(const Iterator &rhs) const
GLsizei const GLchar *const * path
USD_API UsdZipFileWriter()
Create an invalid UsdZipFileWriter object.
Iterator cend() const
Returns end iterator for this zip archive.
USD_API ~UsdZipFileWriter()
Calls Save()
USD_API Iterator & operator=(const Iterator &rhs)
USD_API bool operator!=(const Iterator &rhs) const
USD_API Iterator Find(const std::string &path) const
USD_API FileInfo GetFileInfo() const
USD_API void DumpContents() const
USD_API const char * GetFile() const
Iterator cbegin() const
Returns iterator pointing to the first file in the zip archive.
USD_API UsdZipFile()
Create an invalid UsdZipFile object.
USD_API std::string AddFile(const std::string &filePath, const std::string &filePathInArchive=std::string())
uint16_t compressionMethod
USD_API reference operator*() const
Returns filename of the current file in the zip archive.
USD_API pointer operator->() const
Returns filename of the current file in the zip archive.
static USD_API UsdZipFile Open(const std::string &filePath)
USD_API Iterator end() const
Returns end iterator for this zip archive.
bool encrypted
Whether or not this file is encrypted.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
UsdZipFileWriter & operator=(const UsdZipFileWriter &)=delete
std::forward_iterator_tag iterator_category
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API Iterator & operator++()