#include <XLZipArchive.hpp>
◆ XLZipArchive() [1/3]
| XLZipArchive::XLZipArchive |
( |
| ) |
|
◆ XLZipArchive() [2/3]
| OpenXLSX::XLZipArchive::XLZipArchive |
( |
const XLZipArchive & |
other | ) |
|
|
default |
◆ XLZipArchive() [3/3]
| OpenXLSX::XLZipArchive::XLZipArchive |
( |
XLZipArchive && |
other | ) |
|
|
defaultnoexcept |
◆ ~XLZipArchive()
| XLZipArchive::~XLZipArchive |
( |
| ) |
|
|
default |
◆ addEntry()
| void XLZipArchive::addEntry |
( |
std::string_view |
name, |
|
|
std::string_view |
data |
|
) |
| |
◆ addEntryFromFile()
| void XLZipArchive::addEntryFromFile |
( |
std::string_view |
name, |
|
|
std::string_view |
filePath |
|
) |
| |
Add a file to the ZIP archive directly from the file system (useful for streaming large files).
- Parameters
-
| name | The name of the entry within the ZIP archive. |
| filePath | The path to the file on disk. |
◆ close()
| void XLZipArchive::close |
( |
| ) |
|
◆ closeEntryStream()
| void XLZipArchive::closeEntryStream |
( |
void * |
stream | ) |
const |
Closes an opened stream.
- Parameters
-
| stream | The opaque stream pointer. |
◆ compressionLevel()
| int XLZipArchive::compressionLevel |
( |
| ) |
const |
Get the current compression level.
◆ deleteEntry()
| void XLZipArchive::deleteEntry |
( |
std::string_view |
entryName | ) |
|
◆ entryNames()
| std::vector< std::string > XLZipArchive::entryNames |
( |
| ) |
const |
Get a list of all entry names in the archive.
- Returns
- A vector of strings containing the names of all entries.
◆ getEntry()
| std::string XLZipArchive::getEntry |
( |
std::string_view |
name | ) |
const |
◆ hasEntry()
| bool XLZipArchive::hasEntry |
( |
std::string_view |
entryName | ) |
const |
◆ isOpen()
| bool XLZipArchive::isOpen |
( |
| ) |
const |
◆ isValid()
| bool XLZipArchive::isValid |
( |
| ) |
const |
◆ open()
| void XLZipArchive::open |
( |
std::string_view |
fileName | ) |
|
◆ openEntryStream()
| void * XLZipArchive::openEntryStream |
( |
std::string_view |
name | ) |
const |
Opens a stream for reading a specific entry.
- Parameters
-
| name | The name of the entry to open. |
- Returns
- An opaque pointer to the stream.
◆ operator bool()
| XLZipArchive::operator bool |
( |
| ) |
const |
|
explicit |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ readEntryStream()
| int64_t XLZipArchive::readEntryStream |
( |
void * |
stream, |
|
|
char * |
buffer, |
|
|
uint64_t |
size |
|
) |
| const |
Reads data from an opened stream.
- Parameters
-
| stream | The opaque stream pointer. |
| buffer | The buffer to read into. |
| size | The maximum number of bytes to read. |
- Returns
- The number of bytes read, or -1 on error.
◆ save()
| void XLZipArchive::save |
( |
std::string_view |
path = "" | ) |
|
◆ setCompressionLevel()
| void XLZipArchive::setCompressionLevel |
( |
int |
level | ) |
|
Set the compression level for packing the archive.
- Parameters
-
| level | The compression level to use (e.g., 1 for fastest, 9 for best). Default is 1. |
The documentation for this class was generated from the following files: