ZXCKS file writer.
More...
#include <xckswriter.hpp>
|
| ZXCKSWriter ()=delete |
| Deleted default constructor. More...
|
|
| ZXCKSWriter (const ZXCKSWriter &)=delete |
| Deleted copy constructor. More...
|
|
ZXCKSWriter & | operator= (const ZXCKSWriter &)=delete |
| Deleted copy assignment operator. More...
|
|
| ZXCKSWriter (XCKSWriterHandler &xcksWriterHandler, XCKSWriterChecksumProvider &checksumProvider, const ZXCKSWriterOptions &options, const Version version, const ArrayChecksumAlgoId &algoIds, const ChecksumFormatter::ConfigurationProvider &ckftConfProvider) |
| Constructor. More...
|
|
virtual | ~ZXCKSWriter () |
| Destructor. More...
|
|
| XCKSWriter ()=delete |
| Deleted default constructor. More...
|
|
| XCKSWriter (const XCKSWriter &)=delete |
| Deleted copy constructor. More...
|
|
XCKSWriter & | operator= (const XCKSWriter &)=delete |
| Deleted copy assignment operator. More...
|
|
| XCKSWriter (XCKSWriterHandler &xcksWriterHandler, XCKSWriterChecksumProvider &checksumProvider, const XCKSWriterOptions &options, const Version version, const ArrayChecksumAlgoId &algoIds, const ChecksumFormatter::ConfigurationProvider &ckftConfProvider) |
| Constructor. More...
|
|
virtual | ~XCKSWriter () |
| Destructor. More...
|
|
bool | write (std::ostream &os, const std::filesystem::path &basePath, const ArrayPath &relativePaths) |
| Writes an XCKS file to an output stream. More...
|
|
bool | write (const std::filesystem::path &fileFullPath, const ArrayPath &relativePaths) |
| Writes an XCKS file to a file. More...
|
|
bool | write (const std::filesystem::path &filePath, const std::filesystem::path &basePath, const ArrayPath &relativePaths) |
| Writes an XCKS file to a file with a different base path. More...
|
|
|
bool | doWrite (std::ostream &os, const std::filesystem::path &basePath, const ArrayPath &relativePaths) override |
| Writes a ZXCKS file to an output stream. More...
|
|
ZXCKS file writer.
Definition at line 204 of file xckswriter.hpp.
◆ ZXCKSWriter() [1/3]
libxcks::ZXCKSWriter::ZXCKSWriter |
( |
| ) |
|
|
delete |
Deleted default constructor.
◆ ZXCKSWriter() [2/3]
libxcks::ZXCKSWriter::ZXCKSWriter |
( |
const ZXCKSWriter & |
| ) |
|
|
delete |
Deleted copy constructor.
◆ ZXCKSWriter() [3/3]
Constructor.
- Parameters
-
xcksWriterHandler | The XCKS file reader handler. |
checksumProvider | The provider of checksums values from an array of of wanted algorithms of checksums. |
options | Options of the ZXCKS writer. |
version | The wanted version of XCKS specification file. |
algoIds | The algorithms to compute for each file. Each algorithm must appears only once in the array. |
ckftConfProvider | Configuration provider for ChecksumFormatter . |
Definition at line 213 of file xckswriter.cpp.
◆ ~ZXCKSWriter()
libxcks::ZXCKSWriter::~ZXCKSWriter |
( |
| ) |
|
|
virtual |
◆ doWrite()
bool libxcks::ZXCKSWriter::doWrite |
( |
std::ostream & |
os, |
|
|
const std::filesystem::path & |
basePath, |
|
|
const ArrayPath & |
relativePaths |
|
) |
| |
|
overrideprotectedvirtual |
Writes a ZXCKS file to an output stream.
Call this method only after checkBaseDirAndPathList()
.
- Note
- Errors must be handled in
XCKSWriterHandler::onFatalError
, XCKSWriterHandler::onFileGetChecksumsError
, XCKSWriterHandler::onFileGetChecksumError
and XCKSWriterHandler::onFileReadError
(the provided XCKS file writer's handler).
- Parameters
-
[in,out] | os | The output stream. |
[in] | basePath | The base path of the written ZXCKS file. This path must be an absolute path of a directory and must ends with a path separator. |
[in] | relativePaths | Relative paths (to basePath ) of files to add in the ZXCKS file. |
- Returns
true
if the ZXCKS file has been successfully written to the given stream, false
otherwise.
Reimplemented from libxcks::XCKSWriter.
Definition at line 238 of file xckswriter.cpp.
◆ operator=()
Deleted copy assignment operator.
The documentation for this class was generated from the following files: