FOSSredder 0.5.0
Loading...
Searching...
No Matches
infra::archive::ZipArchiveAdapter Class Referencefinal

Creates ZIP archives for exported analysis artifacts. More...

#include <ZipArchiveAdapter.h>

Inheritance diagram for infra::archive::ZipArchiveAdapter:
Collaboration diagram for infra::archive::ZipArchiveAdapter:

Public Member Functions

 ZipArchiveAdapter (std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)
bool create (const std::filesystem::path &sourceDirectory, const std::filesystem::path &outputArchive, core::ports::exporting::PackageFormat format) const override
 Creates a ZIP archive from the files contained in a source directory.
Public Member Functions inherited from core::ports::archive::IArchive
virtual ~IArchive ()=default
 Destroy the archive abstraction.

Detailed Description

Creates ZIP archives for exported analysis artifacts.

Definition at line 22 of file ZipArchiveAdapter.h.

Constructor & Destructor Documentation

◆ ZipArchiveAdapter()

infra::archive::ZipArchiveAdapter::ZipArchiveAdapter ( std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)
explicit

Definition at line 100 of file ZipArchiveAdapter.cpp.

Member Function Documentation

◆ create()

bool infra::archive::ZipArchiveAdapter::create ( const std::filesystem::path & sourceDirectory,
const std::filesystem::path & outputArchive,
core::ports::exporting::PackageFormat format ) const
overridevirtual

Creates a ZIP archive from the files contained in a source directory.

Parameters
sourceDirectoryThe directory whose files should be packaged.
outputArchiveThe target archive file path.
formatThe requested archive format.
Returns
True when the archive was created successfully.

Implements core::ports::archive::IArchive.

Definition at line 105 of file ZipArchiveAdapter.cpp.


The documentation for this class was generated from the following files: