Archive reader.
More...
#include <ArchiveReader.h>
◆ ExtractCallback
◆ ArchiveReader()
Reads the archive from the input stream
- Parameters
-
◆ ~ArchiveReader()
ArchiveReader::~ArchiveReader |
( |
| ) |
|
|
virtual |
◆ closeCallback()
int ArchiveReader::closeCallback |
( |
void * | a, |
|
|
ArchiveReader * | archive_this ) |
|
static |
◆ extract() [1/2]
◆ extract() [2/2]
bool ArchiveReader::extract |
( |
const std::filesystem::path & | src_path, |
|
|
const std::filesystem::path & | dest_path, |
|
|
const std::string & | pwd = {} ) |
|
static |
Extracts the archive to the specified location
- Parameters
-
src_path | The path of the archive |
dest_path | The destination path for extraction |
pwd | The password (optional) |
- Returns
- Whether the operation was successful
References a, archive, sese::io::FileStream::B_WRITE_TRUNC, buffer, and write().
◆ getError()
int ArchiveReader::getError |
( |
| ) |
const |
|
nodiscard |
Retrieves the current error code
- Returns
- The error code
References XX.
◆ getErrorString()
const char * ArchiveReader::getErrorString |
( |
| ) |
const |
|
nodiscard |
Retrieves the current error message
- Returns
- The error message
References XX.
◆ openCallback()
int ArchiveReader::openCallback |
( |
void * | a, |
|
|
ArchiveReader * | archive_this ) |
|
static |
◆ readCallback()
int64_t ArchiveReader::readCallback |
( |
void * | a, |
|
|
ArchiveReader * | archive_this, |
|
|
const void ** | buffer ) |
|
static |
◆ setOptions()
int ArchiveReader::setOptions |
( |
const std::string & | opt | ) |
const |
|
nodiscard |
Sets libarchive options for the current archive
- Parameters
-
- Returns
- Returns 0 if successful
References XX.
◆ setPassword()
int ArchiveReader::setPassword |
( |
const std::string & | pwd | ) |
const |
|
nodiscard |
Sets the password for the currently read document
- Parameters
-
pwd | The password to be used |
- Returns
- Returns 0 if successful
References XX.
◆ archive
void* sese::archive::ArchiveReader::archive {} |
|
protected |
◆ buffer
char sese::archive::ArchiveReader::buffer[4096] {} |
|
protected |
◆ input
The documentation for this class was generated from the following files: