7 #ifndef PXR_USD_SDF_ZIP_FILE_H
8 #define PXR_USD_SDF_ZIP_FILE_H
65 explicit operator bool()
const {
return static_cast<bool>(_impl); }
106 explicit _ArrowProxy(
const std::string&
s) : _s(s) { }
107 const std::string*
operator->()
const {
return &_s; }
126 Iterator&
operator=(
const Iterator& rhs);
170 friend class SdfZipFile;
174 std::unique_ptr<_IteratorData> _data;
186 Iterator
end()
const;
194 Iterator
Find(
const std::string&
path)
const;
204 std::shared_ptr<_Impl> _impl;
235 SdfZipFileWriter&
operator=(
const SdfZipFileWriter&) =
delete;
240 SdfZipFileWriter&
operator=(SdfZipFileWriter&& rhs);
244 explicit operator bool()
const {
return static_cast<bool>(_impl); }
256 std::string
AddFile(
const std::string& filePath,
257 const std::string& filePathInArchive = std::string());
275 std::unique_ptr<_Impl> _impl;
280 #endif // PXR_USD_SDF_ZIP_FILE_H
std::ptrdiff_t difference_type
#define PXR_NAMESPACE_OPEN_SCOPE
SDF_API Iterator Find(const std::string &path) const
SDF_API FileInfo GetFileInfo() const
GLsizei const GLchar *const * path
SDF_API void DumpContents() const
SDF_API Iterator & operator=(const Iterator &rhs)
static SDF_API SdfZipFileWriter CreateNew(const std::string &filePath)
SDF_API bool operator!=(const Iterator &rhs) const
SdfZipFileWriter & operator=(const SdfZipFileWriter &)=delete
SDF_API Iterator end() const
Returns end iterator for this zip archive.
Iterator cbegin() const
Returns iterator pointing to the first file in the zip archive.
SDF_API ~SdfZipFileWriter()
Calls Save()
SDF_API Iterator begin() const
Returns iterator pointing to the first file in the zip archive.
Iterator cend() const
Returns end iterator for this zip archive.
SDF_API reference operator*() const
Returns filename of the current file in the zip archive.
static SDF_API SdfZipFile Open(const std::string &filePath)
SDF_API SdfZipFileWriter()
Create an invalid SdfZipFileWriter object.
SDF_API const char * GetFile() const
size_t crc
CRC-32 value of the uncompressed file.
SDF_API std::string AddFile(const std::string &filePath, const std::string &filePathInArchive=std::string())
bool encrypted
Whether or not this file is encrypted.
SDF_API bool operator==(const Iterator &rhs) const
SDF_API pointer operator->() const
Returns filename of the current file in the zip archive.
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API Iterator & operator++()
std::forward_iterator_tag iterator_category
uint16_t compressionMethod
SDF_API SdfZipFile()
Create an invalid SdfZipFile object.