HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfZipFile::Iterator Class Reference

#include <zipFile.h>

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = std::string
 
using pointer = _ArrowProxy
 
using reference = std::string
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

SDF_API Iterator ()
 
SDF_API ~Iterator ()
 
SDF_API Iterator (const Iterator &rhs)
 
SDF_API Iterator (Iterator &&rhs)
 
SDF_API Iteratoroperator= (const Iterator &rhs)
 
SDF_API Iteratoroperator= (Iterator &&rhs)
 
SDF_API Iteratoroperator++ ()
 
SDF_API Iterator operator++ (int)
 
SDF_API bool operator== (const Iterator &rhs) const
 
SDF_API bool operator!= (const Iterator &rhs) const
 
SDF_API reference operator* () const
 Returns filename of the current file in the zip archive. More...
 
SDF_API pointer operator-> () const
 Returns filename of the current file in the zip archive. More...
 
SDF_API const char * GetFile () const
 
SDF_API FileInfo GetFileInfo () const
 

Friends

class SdfZipFile
 

Detailed Description

Iterator for traversing and inspecting the contents of the zip archive.

Definition at line 99 of file zipFile.h.

Member Typedef Documentation

using SdfZipFile::Iterator::difference_type = std::ptrdiff_t

Definition at line 131 of file zipFile.h.

using SdfZipFile::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 135 of file zipFile.h.

using SdfZipFile::Iterator::pointer = _ArrowProxy

Definition at line 133 of file zipFile.h.

using SdfZipFile::Iterator::reference = std::string

Definition at line 134 of file zipFile.h.

using SdfZipFile::Iterator::value_type = std::string

Definition at line 132 of file zipFile.h.

Constructor & Destructor Documentation

SDF_API SdfZipFile::Iterator::Iterator ( )
SDF_API SdfZipFile::Iterator::~Iterator ( )
SDF_API SdfZipFile::Iterator::Iterator ( const Iterator rhs)
SDF_API SdfZipFile::Iterator::Iterator ( Iterator &&  rhs)

Member Function Documentation

SDF_API const char* SdfZipFile::Iterator::GetFile ( ) const

Returns pointer to the beginning of the current file in the zip archive. The contents of the current file span the range [GetFile(), GetFile() + GetFileInfo().size).

Note that this points to the raw data stored in the zip archive; no decompression or other transformation is applied.

SDF_API FileInfo SdfZipFile::Iterator::GetFileInfo ( ) const

Returns FileInfo object containing information about the current file.

SDF_API bool SdfZipFile::Iterator::operator!= ( const Iterator rhs) const
SDF_API reference SdfZipFile::Iterator::operator* ( ) const

Returns filename of the current file in the zip archive.

SDF_API Iterator& SdfZipFile::Iterator::operator++ ( )
SDF_API Iterator SdfZipFile::Iterator::operator++ ( int  )
SDF_API pointer SdfZipFile::Iterator::operator-> ( ) const

Returns filename of the current file in the zip archive.

SDF_API Iterator& SdfZipFile::Iterator::operator= ( const Iterator rhs)
SDF_API Iterator& SdfZipFile::Iterator::operator= ( Iterator &&  rhs)
SDF_API bool SdfZipFile::Iterator::operator== ( const Iterator rhs) const

Friends And Related Function Documentation

friend class SdfZipFile
friend

Definition at line 170 of file zipFile.h.


The documentation for this class was generated from the following file: