FOSSredder 0.5.0
Loading...
Searching...
No Matches
ZipArchiveAdapter.h
Go to the documentation of this file.
1
5
6#pragma once
7
9
10#include <filesystem>
11#include <memory>
12
14class IErrorReporter;
15}
16
17namespace infra::archive {
18
23public:
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
37private:
38 std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter_;
39};
40
41} // namespace infra::archive
Declares the archive abstraction used by export packaging.
Abstraction for writing exported artifacts into archive files.
Definition IArchive.h:17
Port for reporting structured diagnostic error events.
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.