FOSSredder
0.5.0
Loading...
Searching...
No Matches
ZipArchiveAdapter.h
Go to the documentation of this file.
1
5
6
#pragma once
7
8
#include "
core/ports/infra/archive/IArchive.h
"
9
10
#include <filesystem>
11
#include <memory>
12
13
namespace
core::ports::diagnostics
{
14
class
IErrorReporter
;
15
}
16
17
namespace
infra::archive
{
18
22
class
ZipArchiveAdapter
final :
public
core::ports::archive::IArchive
{
23
public
:
24
explicit
ZipArchiveAdapter
(std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter);
25
33
bool
create
(
const
std::filesystem::path& sourceDirectory,
34
const
std::filesystem::path& outputArchive,
35
core::ports::exporting::PackageFormat
format)
const override
;
36
37
private
:
38
std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter_;
39
};
40
41
}
// namespace infra::archive
IArchive.h
Declares the archive abstraction used by export packaging.
core::ports::archive::IArchive
Abstraction for writing exported artifacts into archive files.
Definition
IArchive.h:17
core::ports::diagnostics::IErrorReporter
Port for reporting structured diagnostic error events.
Definition
IErrorReporter.h:18
infra::archive::ZipArchiveAdapter::ZipArchiveAdapter
ZipArchiveAdapter(std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)
Definition
ZipArchiveAdapter.cpp:100
infra::archive::ZipArchiveAdapter::create
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.
Definition
ZipArchiveAdapter.cpp:105
core::ports::diagnostics
Definition
StatementImportJobSystem.h:23
core::ports::exporting::PackageFormat
PackageFormat
Definition
ExportRequest.h:26
infra::archive
Definition
ZipArchiveAdapter.h:17
infra
archive
include
archive
ZipArchiveAdapter.h
Generated by
1.14.0