Zip file writer. More...

#include <zip_writer.h>

Public Member Functions

 ZipWriter (IODevice &output, bool storeFilenamesAsUTF8=false)
 Constructs a ZipWriter.
 
void begin_file (const std::string &filename, bool compress)
 Begins file entry in the zip file.
 
void end_file ()
 Ends the file entry.
 
void write_file_data (const void *data, int64_t size)
 Writes some file data to the zip file.
 
void write_toc ()
 Writes the table of contents part of the zip file.
 

Detailed Description

Zip file writer.

Constructor & Destructor Documentation

◆ ZipWriter()

clan::ZipWriter::ZipWriter ( IODevice & output,
bool storeFilenamesAsUTF8 = false )

Constructs a ZipWriter.

Parameters
output= IODevice
storeFilenamesAsUTF8= bool

Member Function Documentation

◆ begin_file()

void clan::ZipWriter::begin_file ( const std::string & filename,
bool compress )

Begins file entry in the zip file.

◆ end_file()

void clan::ZipWriter::end_file ( )

Ends the file entry.

◆ write_file_data()

void clan::ZipWriter::write_file_data ( const void * data,
int64_t size )

Writes some file data to the zip file.

◆ write_toc()

void clan::ZipWriter::write_toc ( )

Writes the table of contents part of the zip file.


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