|
OpenXLSX 1.9.1
|
This class functions as a wrapper around any class that provides the necessary functionality for a zip archive. More...
#include <IZipArchive.hpp>
Public Member Functions | |
| IZipArchive () | |
| Default constructor. | |
| template<typename T > | |
| IZipArchive (const T &zipArchive) | |
| Constructor, taking the target object as an argument. | |
| IZipArchive (const IZipArchive &other) | |
| Copy constructor. | |
| IZipArchive (IZipArchive &&other) noexcept=default | |
| Move constructor. | |
| ~IZipArchive ()=default | |
| Destructor. | |
| template<typename T > | |
| IZipArchive & | operator= (const T &zipArchive) |
| IZipArchive & | operator= (const IZipArchive &other) |
| IZipArchive & | operator= (IZipArchive &&other) noexcept=default |
| operator bool () const | |
| bool | isValid () const |
| bool | isOpen () const |
| void | open (const std::string &fileName) |
| void | close () const |
| void | save (const std::string &path) |
| void | addEntry (const std::string &name, const std::string &data) |
| void | addEntryFromFile (std::string_view name, std::string_view filePath) |
| void | deleteEntry (const std::string &entryName) |
| std::string | getEntry (const std::string &name) const |
| void * | openEntryStream (std::string_view name) const |
| int64_t | readEntryStream (void *stream, char *buffer, uint64_t size) const |
| void | closeEntryStream (void *stream) const |
| bool | hasEntry (const std::string &entryName) const |
| std::vector< std::string > | entryNames () const |
| void | setCompressionLevel (int level) |
| int | compressionLevel () const |
This class functions as a wrapper around any class that provides the necessary functionality for a zip archive.
This class works by applying 'type erasure'. This enables the use of objects of any class, the only requirement being that it provides the right interface. No inheritance from a base class is needed.
|
inline |
Default constructor.
|
inline |
Constructor, taking the target object as an argument.
| T | The type of the target object (will be auto deducted) |
| x | The target object |
|
inline |
Copy constructor.
| other |
|
defaultnoexcept |
Move constructor.
| other |
|
default |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
| other |
|
inline |
| T |
| x |
|
inlinedefaultnoexcept |
| other |
|
inline |
|
inline |
|
inline |