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