neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::zip Class Reference

#include <zip.hpp>

Classes

struct  file_not_found
 
struct  zip_file_too_big
 

Public Types

typedef std::vector< uint8_tbuffer_type
 

Public Member Functions

 zip (const std::string &aZipFilePath)
 
 zip (const buffer_type &aZipFile)
 
 zip (buffer_type &&aZipFile)
 
 zip (const void *aZipFileData, std::size_t aZipFileDataLength)
 
size_t file_count () const
 
std::size_t index_of (const std::string &aFile) const
 
bool extract (size_t aIndex, const std::string &aTargetDirectory)
 
bool extract_to (size_t aIndex, buffer_type &aBuffer)
 
std::string extract_to_string (size_t aIndex)
 
const std::string & file_path (size_t aIndex) const
 
bool ok () const
 

Detailed Description

Definition at line 44 of file zip.hpp.

Member Typedef Documentation

◆ buffer_type

Definition at line 47 of file zip.hpp.

Constructor & Destructor Documentation

◆ zip() [1/4]

neolib::zip::zip ( const std::string &  aZipFilePath)

◆ zip() [2/4]

neolib::zip::zip ( const buffer_type aZipFile)

◆ zip() [3/4]

neolib::zip::zip ( buffer_type &&  aZipFile)

◆ zip() [4/4]

neolib::zip::zip ( const void aZipFileData,
std::size_t  aZipFileDataLength 
)

Member Function Documentation

◆ extract()

bool neolib::zip::extract ( size_t  aIndex,
const std::string &  aTargetDirectory 
)

◆ extract_to()

bool neolib::zip::extract_to ( size_t  aIndex,
buffer_type aBuffer 
)

◆ extract_to_string()

std::string neolib::zip::extract_to_string ( size_t  aIndex)

◆ file_count()

size_t neolib::zip::file_count ( ) const
inline

Definition at line 57 of file zip.hpp.

◆ file_path()

const std::string & neolib::zip::file_path ( size_t  aIndex) const

◆ index_of()

std::size_t neolib::zip::index_of ( const std::string &  aFile) const

◆ ok()

bool neolib::zip::ok ( ) const
inline

Definition at line 63 of file zip.hpp.


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