#include <zip_archive.h>
Public Member Functions | |
Construction | |
| CL_ZipArchive () | |
| Constructs or loads a ZIP archive. | |
| CL_ZipArchive (CL_IODevice &input) | |
| Constructs a ZipArchive. | |
| CL_ZipArchive (const CL_StringRef &filename) | |
| Constructs a ZipArchive. | |
| CL_ZipArchive (const CL_ZipArchive ©) | |
| Constructs a ZipArchive. | |
| ~CL_ZipArchive () | |
Attributes | |
| std::vector< CL_ZipFileEntry > | get_file_list () |
| List of file entries in archive. | |
| std::vector< CL_ZipFileEntry > | get_file_list (const CL_StringRef &path) |
Operations | |
| CL_IODevice | open_file (const CL_StringRef &filename) |
| Opens a file in the archive. | |
| CL_String | get_pathname (const CL_StringRef &filename) |
| Get full path to source:. | |
| CL_IODevice | create_file (const CL_StringRef &filename, bool compress=true) |
| Creates a new file entry. | |
| void | add_file (const CL_StringRef &input_filename, const CL_StringRef &filename_in_archive, bool compress=true) |
| Adds a file to zip archive. | |
| void | save () |
| Saves zip archive. | |
| void | save (const CL_StringRef &filename) |
| Save. | |
| void | save (CL_IODevice iodev) |
| Save. | |
| void | load (CL_IODevice &input) |
| Loads the zip archive from a input device (done automatically at construction). | |
|
|
Constructs or loads a ZIP archive.
|
|
|
Constructs a ZipArchive.
|
|
|
Constructs a ZipArchive.
|
|
|
Constructs a ZipArchive.
|
|
|
|
|
||||||||||||||||
|
Adds a file to zip archive. File is not added to zip file until it save() is called.
|
|
||||||||||||
|
Creates a new file entry.
|
|
|
|
|
|
List of file entries in archive.
|
|
|
Get full path to source:.
|
|
|
Loads the zip archive from a input device (done automatically at construction).
|
|
|
Opens a file in the archive.
|
|
|
Save.
|
|
|
Save.
|
|
|
Saves zip archive.
If the archive was created instead of loaded, a filename must be specify a filename. Likewise, if saving to same archive as loaded from, a filename must not be specified. Doing so will cause the save operation to fail. |
1.4.6