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
12
namespace
Core {
class
Path
; }
13
namespace
Core {
class
PathView
; }
14
namespace
Core::ZipUtils {
class
UnzipSettings
; }
15
namespace
Core::ZipUtils {
class
ZipProgress
; }
16
namespace
Core::ZipUtils {
class
ZipSettings
; }
17
// clang-format on
18
19
namespace
Core::ZipUtils {
20
21
class
IZipUtility
{
22
public
:
23
// virtual functions
24
// NOLINTBEGIN
25
virtual
~IZipUtility
() =
default
;
26
27
virtual ::Bedrock::Result<void>
28
zip(
::Core::Path
const
&,
29
::Core::Path
const
&,
30
::Core::ZipUtils::ZipProgress
&,
31
bool
,
32
::Core::ZipUtils::ZipSettings
const
&)
const
= 0;
33
34
virtual ::Bedrock::Result<void>
35
zip(::std::vector<
::Core::PathBuffer<::std::string>
>
const
&,
36
::Core::PathView
,
37
::Core::ZipUtils::ZipProgress
&,
38
bool
,
39
::std::function<::std::string(
::Core::PathView
)>,
40
::Core::ZipUtils::ZipSettings
const
&)
const
= 0;
41
42
virtual ::Bedrock::Result<void> zipFromZip(
43
::Core::PathView
,
44
::Core::PathView
,
45
::Core::PathView
,
46
::Core::ZipUtils::ZipProgress
&,
47
bool
,
48
::Core::ZipUtils::ZipSettings
const
&
49
)
const
= 0;
50
51
virtual ::Bedrock::Result<void> unzipInTransaction(
52
::Core::Path
const
&,
53
::Core::Path
const
&,
54
::Core::ZipUtils::ZipProgress
&,
55
bool
,
56
::Core::ZipUtils::UnzipSettings
const
&
57
)
const
= 0;
58
59
virtual ::Bedrock::Result<void> unzipToFlatFile(
60
::Core::Path
const
&,
61
::Core::Path
const
&,
62
::Core::ZipUtils::ZipProgress
&,
63
::Core::FileBufferingMode,
64
::Core::ZipUtils::UnzipSettings
const
&
65
)
const
= 0;
66
67
virtual
bool
getFilenames(
68
::Core::Path
const
&,
69
::std::vector<
::Core::PathBuffer<::std::string>
>&,
70
::Core::ZipUtils::UnzipSettings
const
&
71
)
const
= 0;
72
73
virtual
bool
exists(
::Core::Path
const
&,
::Core::Path
const
&,
::Core::ZipUtils::UnzipSettings
const
&)
const
= 0;
74
// NOLINTEND
75
76
public
:
77
// virtual function thunks
78
// NOLINTBEGIN
79
80
// NOLINTEND
81
};
82
83
}
// namespace Core::ZipUtils
Core::PathBuffer
Definition
PathBuffer.h:8
Core::PathView
Definition
PathView.h:17
Core::Path
Definition
Path.h:10
Core::ZipUtils::IZipUtility
Definition
IZipUtility.h:21
Core::ZipUtils::UnzipSettings
Definition
UnzipSettings.h:7
Core::ZipUtils::ZipProgress
Definition
ZipProgress.h:7
Core::ZipUtils::ZipSettings
Definition
ZipSettings.h:7
src
mc
deps
core
file
IZipUtility.h
Generated on
for LeviLamina by
1.16.1