FOSSredder 0.5.0
Loading...
Searching...
No Matches
IArchive.h
Go to the documentation of this file.
1
5
6#pragma once
7
9
10#include <filesystem>
11
12namespace core::ports::archive {
13
17class IArchive {
18public:
22 virtual ~IArchive() = default;
23
31 virtual bool create(const std::filesystem::path& sourceDirectory,
32 const std::filesystem::path& outputArchive,
34};
35
36} // namespace core::ports::archive
Declares export use-case request DTOs and related port types.
Abstraction for writing exported artifacts into archive files.
Definition IArchive.h:17
virtual ~IArchive()=default
Destroy the archive abstraction.
virtual bool create(const std::filesystem::path &sourceDirectory, const std::filesystem::path &outputArchive, core::ports::exporting::PackageFormat format) const =0
Creates an archive from files inside a source directory.