GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
miniz_cpp::zip_file Class Reference

#include <zip_file.hpp>

Collaboration diagram for miniz_cpp::zip_file:

Public Member Functions

 zip_file ()
 zip_file (const std::string &filename)
 zip_file (std::istream &stream)
 zip_file (const std::vector< unsigned char > &bytes)
 ~zip_file ()
void load (std::istream &stream)
void load (const std::string &filename)
void load (const std::vector< unsigned char > &bytes)
void save (const std::string &filename)
void save (std::ostream &stream)
void save (std::vector< unsigned char > &bytes)
void reset ()
bool has_file (const std::string &name)
bool has_file (const zip_info &name)
zip_info getinfo (const std::string &name)
std::vector< zip_info > infolist ()
std::vector< std::string > namelist ()
std::ostream & open (const std::string &name)
std::ostream & open (const zip_info &name)
void extract (const std::string &member, const std::string &path)
void extract (const zip_info &member, const std::string &path)
void extractall (const std::string &path)
void extractall (const std::string &path, const std::vector< std::string > &members)
void extractall (const std::string &path, const std::vector< zip_info > &members)
void printdir ()
void printdir (std::ostream &stream)
std::string read (const zip_info &info)
std::string read (const std::string &name)
std::pair< bool, std::string > testzip ()
void write (const std::string &filename)
void write (const std::string &filename, const std::string &arcname)
void writestr (const std::string &arcname, const std::string &bytes)
void writestr (const zip_info &info, const std::string &bytes)
std::string get_filename () const

Public Attributes

std::string comment

Constructor & Destructor Documentation

◆ zip_file() [1/4]

miniz_cpp::zip_file::zip_file ( )
inline
Here is the caller graph for this function:

◆ zip_file() [2/4]

miniz_cpp::zip_file::zip_file ( const std::string & filename)
inline

◆ zip_file() [3/4]

miniz_cpp::zip_file::zip_file ( std::istream & stream)
inline

◆ zip_file() [4/4]

miniz_cpp::zip_file::zip_file ( const std::vector< unsigned char > & bytes)
inline

◆ ~zip_file()

miniz_cpp::zip_file::~zip_file ( )
inline

Member Function Documentation

◆ extract() [1/2]

void miniz_cpp::zip_file::extract ( const std::string & member,
const std::string & path )
inline
Here is the caller graph for this function:

◆ extract() [2/2]

void miniz_cpp::zip_file::extract ( const zip_info & member,
const std::string & path )
inline

◆ extractall() [1/3]

void miniz_cpp::zip_file::extractall ( const std::string & path)
inline
Here is the caller graph for this function:

◆ extractall() [2/3]

void miniz_cpp::zip_file::extractall ( const std::string & path,
const std::vector< std::string > & members )
inline

◆ extractall() [3/3]

void miniz_cpp::zip_file::extractall ( const std::string & path,
const std::vector< zip_info > & members )
inline

◆ get_filename()

std::string miniz_cpp::zip_file::get_filename ( ) const
inline

◆ getinfo()

zip_info miniz_cpp::zip_file::getinfo ( const std::string & name)
inline
Here is the caller graph for this function:

◆ has_file() [1/2]

bool miniz_cpp::zip_file::has_file ( const std::string & name)
inline
Here is the caller graph for this function:

◆ has_file() [2/2]

bool miniz_cpp::zip_file::has_file ( const zip_info & name)
inline

◆ infolist()

std::vector< zip_info > miniz_cpp::zip_file::infolist ( )
inline
Here is the caller graph for this function:

◆ load() [1/3]

void miniz_cpp::zip_file::load ( const std::string & filename)
inline

◆ load() [2/3]

void miniz_cpp::zip_file::load ( const std::vector< unsigned char > & bytes)
inline

◆ load() [3/3]

void miniz_cpp::zip_file::load ( std::istream & stream)
inline
Here is the caller graph for this function:

◆ namelist()

std::vector< std::string > miniz_cpp::zip_file::namelist ( )
inline

◆ open() [1/2]

std::ostream & miniz_cpp::zip_file::open ( const std::string & name)
inline
Here is the caller graph for this function:

◆ open() [2/2]

std::ostream & miniz_cpp::zip_file::open ( const zip_info & name)
inline

◆ printdir() [1/2]

void miniz_cpp::zip_file::printdir ( )
inline
Here is the caller graph for this function:

◆ printdir() [2/2]

void miniz_cpp::zip_file::printdir ( std::ostream & stream)
inline

◆ read() [1/2]

std::string miniz_cpp::zip_file::read ( const std::string & name)
inline

◆ read() [2/2]

std::string miniz_cpp::zip_file::read ( const zip_info & info)
inline
Here is the caller graph for this function:

◆ reset()

void miniz_cpp::zip_file::reset ( )
inline
Here is the caller graph for this function:

◆ save() [1/3]

void miniz_cpp::zip_file::save ( const std::string & filename)
inline
Here is the caller graph for this function:

◆ save() [2/3]

void miniz_cpp::zip_file::save ( std::ostream & stream)
inline

◆ save() [3/3]

void miniz_cpp::zip_file::save ( std::vector< unsigned char > & bytes)
inline

◆ testzip()

std::pair< bool, std::string > miniz_cpp::zip_file::testzip ( )
inline

◆ write() [1/2]

void miniz_cpp::zip_file::write ( const std::string & filename)
inline
Here is the caller graph for this function:

◆ write() [2/2]

void miniz_cpp::zip_file::write ( const std::string & filename,
const std::string & arcname )
inline

◆ writestr() [1/2]

void miniz_cpp::zip_file::writestr ( const std::string & arcname,
const std::string & bytes )
inline
Here is the caller graph for this function:

◆ writestr() [2/2]

void miniz_cpp::zip_file::writestr ( const zip_info & info,
const std::string & bytes )
inline

Member Data Documentation

◆ comment

std::string miniz_cpp::zip_file::comment

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