staticlib_unzip  1.0.6
 All Classes Namespaces Files Functions Variables
Classes | Functions
staticlib::unzip Namespace Reference

Classes

struct  file_entry
 Represents ZIP file entry. More...
class  file_index
 Represents an index over the entries inside the ZIP file. More...
class  unzip_exception
 Module specific exception. More...

Functions

std::unique_ptr< std::streambuf > open_zip_entry (const file_index &idx, const std::string &entry_name)
 Opens "input stream" to the specified ZIP entry in the ZIP file corresponding to the specified index.

Function Documentation

std::unique_ptr<std::streambuf> staticlib::unzip::open_zip_entry ( const file_index &  idx,
const std::string &  entry_name 
)

Opens "input stream" to the specified ZIP entry in the ZIP file corresponding to the specified index.

Parameters
idxZIP file index
entry_nameZIP entry name
Returns
unique pointer to the unbuffered streambuf