This class functions as a wrapper around any class that provides the necessary functionality for a zip archive.
More...
#include <IZipArchive.hpp>
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.
◆ IZipArchive() [1/4]
| OpenXLSX::IZipArchive::IZipArchive |
( |
| ) |
|
|
inline |
◆ IZipArchive() [2/4]
template<typename T>
| OpenXLSX::IZipArchive::IZipArchive |
( |
const T & | zipArchive | ) |
|
|
inline |
Constructor, taking the target object as an argument.
- Template Parameters
-
| T | The type of the target object (will be auto deducted) |
- Parameters
-
- Note
- This method is deliberately not marked 'explicit', because as a templated constructor, it should be able to take any type as an argument. However, only objects that satisfy the required interface can be used.
◆ IZipArchive() [3/4]
| OpenXLSX::IZipArchive::IZipArchive |
( |
const IZipArchive & | other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ IZipArchive() [4/4]
| OpenXLSX::IZipArchive::IZipArchive |
( |
IZipArchive && | other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ ~IZipArchive()
| OpenXLSX::IZipArchive::~IZipArchive |
( |
| ) |
|
|
default |
◆ addEntry()
| void OpenXLSX::IZipArchive::addEntry |
( |
const std::string & | name, |
|
|
std::string | data ) |
|
inline |
◆ addEntryAllocated()
| void OpenXLSX::IZipArchive::addEntryAllocated |
( |
std::string_view | name, |
|
|
void * | data, |
|
|
size_t | size ) |
|
inline |
◆ addEntryFromFile()
| void OpenXLSX::IZipArchive::addEntryFromFile |
( |
std::string_view | name, |
|
|
std::string_view | filePath ) |
|
inline |
◆ close()
| void OpenXLSX::IZipArchive::close |
( |
| ) |
const |
|
inline |
◆ closeEntryStream()
| void OpenXLSX::IZipArchive::closeEntryStream |
( |
void * | stream | ) |
const |
|
inline |
◆ compressionLevel()
| int OpenXLSX::IZipArchive::compressionLevel |
( |
| ) |
const |
|
inline |
◆ deleteEntry()
| void OpenXLSX::IZipArchive::deleteEntry |
( |
const std::string & | entryName | ) |
|
|
inline |
◆ entryNames()
| std::vector< std::string > OpenXLSX::IZipArchive::entryNames |
( |
| ) |
const |
|
inline |
◆ getEntry()
| std::string OpenXLSX::IZipArchive::getEntry |
( |
const std::string & | name | ) |
const |
|
inline |
◆ hasEntry()
| bool OpenXLSX::IZipArchive::hasEntry |
( |
const std::string & | entryName | ) |
const |
|
inline |
◆ isOpen()
| bool OpenXLSX::IZipArchive::isOpen |
( |
| ) |
const |
|
inline |
◆ isValid()
| bool OpenXLSX::IZipArchive::isValid |
( |
| ) |
const |
|
inline |
◆ maxEntryUncompressedSize()
| size_t OpenXLSX::IZipArchive::maxEntryUncompressedSize |
( |
| ) |
const |
|
inline |
◆ open()
| void OpenXLSX::IZipArchive::open |
( |
const std::string & | fileName | ) |
|
|
inline |
◆ openEntryStream()
| void * OpenXLSX::IZipArchive::openEntryStream |
( |
std::string_view | name | ) |
const |
|
inline |
◆ operator bool()
| OpenXLSX::IZipArchive::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=() [1/3]
◆ operator=() [2/3]
template<typename T>
| IZipArchive & OpenXLSX::IZipArchive::operator= |
( |
const T & | zipArchive | ) |
|
|
inline |
- Template Parameters
-
- Parameters
-
- Returns
◆ operator=() [3/3]
◆ readEntryStream()
| int64_t OpenXLSX::IZipArchive::readEntryStream |
( |
void * | stream, |
|
|
char * | buffer, |
|
|
uint64_t | size ) const |
|
inline |
◆ save()
| void OpenXLSX::IZipArchive::save |
( |
const std::string & | path | ) |
|
|
inline |
◆ setCompressionLevel()
| void OpenXLSX::IZipArchive::setCompressionLevel |
( |
int | level | ) |
|
|
inline |
◆ setMaxEntryUncompressedSize()
| void OpenXLSX::IZipArchive::setMaxEntryUncompressedSize |
( |
size_t | maxBytes | ) |
|
|
inline |
The documentation for this class was generated from the following file: