Archive writer.
More...
#include <ArchiveWriter.h>
◆ ArchiveWriter()
◆ ~ArchiveWriter()
ArchiveWriter::~ArchiveWriter |
( |
| ) |
|
|
virtual |
◆ addDirectory() [1/2]
bool ArchiveWriter::addDirectory |
( |
const std::filesystem::path & | base, |
|
|
const std::filesystem::path & | dir ) |
◆ addDirectory() [2/2]
bool ArchiveWriter::addDirectory |
( |
const std::filesystem::path & | dir | ) |
|
◆ addFile() [1/2]
bool ArchiveWriter::addFile |
( |
const std::filesystem::path & | base, |
|
|
const std::filesystem::path & | file ) |
◆ addFile() [2/2]
bool ArchiveWriter::addFile |
( |
const std::filesystem::path & | file | ) |
|
◆ addPath() [1/2]
bool ArchiveWriter::addPath |
( |
const std::filesystem::path & | base, |
|
|
const std::filesystem::path & | path ) |
Entity operation function, adds a file or folder to the specified path in the current archive
- Parameters
-
base | The path within the archive |
path | The target path |
- Returns
- Whether the operation was successful
References addDirectory(), and addFile().
◆ addPath() [2/2]
bool ArchiveWriter::addPath |
( |
const std::filesystem::path & | path | ) |
|
Entity operation function, adds a file or folder to the root directory of the current archive
- Parameters
-
- Returns
- Whether the operation was successful
References addPath().
Referenced by addPath().
◆ addStream()
bool ArchiveWriter::addStream |
( |
const std::filesystem::path & | path, |
|
|
io::InputStream * | input, |
|
|
size_t | len ) |
Entity operation function, reads content from the stream and writes it to the specified path in the archive
- Parameters
-
path | The path within the archive |
input | The input stream |
len | The size to be written |
- Returns
- Whether the operation was successful
References sese::io::InputStream::read(), WRITE, and XX.
◆ begin()
bool ArchiveWriter::begin |
( |
| ) |
|
◆ closeCallback()
int ArchiveWriter::closeCallback |
( |
void * | archive, |
|
|
ArchiveWriter * | archive_this ) |
|
static |
◆ done()
bool ArchiveWriter::done |
( |
| ) |
|
Ends the entity addition
- Returns
- The result of the operation
References XX.
◆ freeCallback()
int ArchiveWriter::freeCallback |
( |
void * | archive, |
|
|
ArchiveWriter * | archive_this ) |
|
static |
◆ getError()
int ArchiveWriter::getError |
( |
| ) |
|
Retrieves the current error code
- Returns
- The error code
References XX.
◆ getErrorString()
const char * ArchiveWriter::getErrorString |
( |
| ) |
|
Retrieves the current error message
- Returns
- The error message
References XX.
◆ openCallback()
int ArchiveWriter::openCallback |
( |
void * | archive, |
|
|
ArchiveWriter * | archive_this ) |
|
static |
◆ passphraseCallback()
◆ setFilterBZip2()
int ArchiveWriter::setFilterBZip2 |
( |
| ) |
|
◆ setFilterGRZip()
int ArchiveWriter::setFilterGRZip |
( |
| ) |
|
◆ setFilterGZip()
int ArchiveWriter::setFilterGZip |
( |
| ) |
|
◆ setFilterLRZip()
int ArchiveWriter::setFilterLRZip |
( |
| ) |
|
◆ setFilterLZ4()
int ArchiveWriter::setFilterLZ4 |
( |
| ) |
|
◆ setFilterLZip()
int ArchiveWriter::setFilterLZip |
( |
| ) |
|
◆ setFilterLzma()
int ArchiveWriter::setFilterLzma |
( |
| ) |
|
◆ setFilterLzop()
int ArchiveWriter::setFilterLzop |
( |
| ) |
|
◆ setFilterNone()
int ArchiveWriter::setFilterNone |
( |
| ) |
|
◆ setFilterXZ()
int ArchiveWriter::setFilterXZ |
( |
| ) |
|
◆ setFilterZstd()
int ArchiveWriter::setFilterZstd |
( |
| ) |
|
◆ setFormat7z()
int ArchiveWriter::setFormat7z |
( |
| ) |
|
◆ setFormatISO()
int ArchiveWriter::setFormatISO |
( |
| ) |
|
◆ setFormatTar()
int ArchiveWriter::setFormatTar |
( |
| ) |
|
◆ setFormatXar()
int ArchiveWriter::setFormatXar |
( |
| ) |
|
◆ setFormatZip()
int ArchiveWriter::setFormatZip |
( |
| ) |
|
◆ setOptions()
int ArchiveWriter::setOptions |
( |
const std::string & | opt | ) |
|
Sets the libarchive options for the archive
- Parameters
-
- Returns
- Returns 0 if successful
References XX.
◆ setPassword()
int ArchiveWriter::setPassword |
( |
const std::string & | pwd | ) |
|
Sets the password used for writing to the archive
- Parameters
-
- Returns
- Returns 0 if successful
References XX.
◆ writeCallback()
int64_t ArchiveWriter::writeCallback |
( |
void * | archive, |
|
|
ArchiveWriter * | archive_this, |
|
|
const void * | buffer, |
|
|
size_t | len ) |
|
static |
◆ archive
void* sese::archive::ArchiveWriter::archive {} |
|
protected |
◆ output
The documentation for this class was generated from the following files: