LeviLamina
Loading...
Searching...
No Matches
IZipUtility.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/FileBufferingMode.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Core { class Path; }
13namespace Core { class PathView; }
14namespace Core::ZipUtils { class UnzipSettings; }
15namespace Core::ZipUtils { class ZipProgress; }
16namespace Core::ZipUtils { class ZipSettings; }
17// clang-format on
18
19namespace Core::ZipUtils {
20
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ~IZipUtility() = default;
26
27 virtual ::Bedrock::Result<void>
28 zip(::Core::Path const&,
29 ::Core::Path const&,
31 bool,
32 ::Core::ZipUtils::ZipSettings const&) const = 0;
33
34 virtual ::Bedrock::Result<void>
35 zip(::std::vector<::Core::PathBuffer<::std::string>> const&,
38 bool,
39 ::std::function<::std::string(::Core::PathView)>,
40 ::Core::ZipUtils::ZipSettings const&) const = 0;
41
42 virtual ::Bedrock::Result<void> zipFromZip(
47 bool,
49 ) const = 0;
50
51 virtual ::Bedrock::Result<void> unzipInTransaction(
52 ::Core::Path const&,
53 ::Core::Path const&,
55 bool,
57 ) const = 0;
58
59 virtual ::Bedrock::Result<void> unzipToFlatFile(
60 ::Core::Path const&,
61 ::Core::Path const&,
63 ::Core::FileBufferingMode,
65 ) const = 0;
66
67 virtual bool getFilenames(
68 ::Core::Path const&,
71 ) const = 0;
72
73 virtual bool exists(::Core::Path const&, ::Core::Path const&, ::Core::ZipUtils::UnzipSettings const&) const = 0;
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79
80 // NOLINTEND
81};
82
83} // namespace Core::ZipUtils
Definition PathBuffer.h:8
Definition PathView.h:17
Definition Path.h:10
Definition IZipUtility.h:21
Definition UnzipSettings.h:7
Definition ZipProgress.h:7
Definition ZipSettings.h:7