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