34 #include "zip_file_entry.h"
43 class ZipArchive_Impl;
101 void add_file(
const std::string &input_filename,
const std::string &filename_in_archive);
120 void save(
const std::string &filename);
135 std::shared_ptr<ZipArchive_Impl> impl;
void save(IODevice iodev)
Save.
void save(const std::string &filename)
Save.
ZipArchive(const ZipArchive ©)
Constructs a ZipArchive.
I/O Device interface.
Definition: iodevice.h:51
std::vector< ZipFileEntry > get_file_list(const std::string &path)
std::vector< ZipFileEntry > get_file_list()
List of file entries in archive.
void load(IODevice &input)
Loads the zip archive from a input device (done automatically at construction).
void save()
Saves zip archive.
IODevice open_file(const std::string &filename)
Opens a file in the archive.
IODevice create_file(const std::string &filename, bool compress=true)
Creates a new file entry.
ZipArchive(const std::string &filename)
Constructs a ZipArchive.
std::string get_pathname(const std::string &filename)
Get full path to source:
ZipArchive(IODevice &input)
Constructs a ZipArchive.
ZipArchive()
Constructs or loads a ZIP archive.
Zip archive.
Definition: zip_archive.h:47
void add_file(const std::string &input_filename, const std::string &filename_in_archive)
Adds a file to zip archive.