LeviLamina
Loading...
Searching...
No Matches
ZipUtility.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/IZipUtility.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/platform/Result.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Core { class Path; }
14namespace Core { class PathView; }
15namespace Core::ZipUtils { class UnzipSettings; }
16namespace Core::ZipUtils { class ZipProgress; }
17namespace Core::ZipUtils { class ZipSettings; }
18// clang-format on
19
20namespace Core::ZipUtils {
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 2
27 virtual ::Bedrock::Result<void>
28 zip(::Core::Path const& inputPath,
29 ::Core::Path const& zipOutputPath,
31 bool useLowMemMode,
32 ::Core::ZipUtils::ZipSettings const& zipSettings) const /*override*/;
33
34 // vIndex: 1
35 virtual ::Bedrock::Result<void>
36 zip(::std::vector<::Core::PathBuffer<::std::string>> const& filesToZip,
37 ::Core::PathView zipOutputPath,
39 bool useLowMemMode,
40 ::std::function<::std::string(::Core::PathView)> overrideNameCallback,
41 ::Core::ZipUtils::ZipSettings const& zipSettings) const /*override*/;
42
43 // vIndex: 3
44 virtual ::Bedrock::Result<void> unzipInTransaction(
45 ::Core::Path const& zipInputPath,
46 ::Core::Path const& outputFolderPath,
48 bool useLowMemMode,
49 ::Core::ZipUtils::UnzipSettings const& unzipSettings
50 ) const /*override*/;
51
52 // vIndex: 4
53 virtual ::Bedrock::Result<void> unzipToFlatFile(
54 ::Core::Path const& zipInputPath,
55 ::Core::Path const& outputFolderPath,
57 ::Core::FileBufferingMode bufferMode,
58 ::Core::ZipUtils::UnzipSettings const& unzipSettings
59 ) const /*override*/;
60
61 // vIndex: 5
62 virtual bool getFilenames(
63 ::Core::Path const& zipPath,
64 ::std::vector<::Core::PathBuffer<::std::string>>& result,
65 ::Core::ZipUtils::UnzipSettings const& unzipSettings
66 ) const /*override*/;
67
68 // vIndex: 6
69 virtual bool exists(
70 ::Core::Path const& zipPath,
71 ::Core::Path const& filePath,
72 ::Core::ZipUtils::UnzipSettings const& unzipSettings
73 ) const /*override*/;
74
75 // vIndex: 0
76 virtual ~ZipUtility() /*override*/ = default;
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI ::Bedrock::Result<void> $zip(
83 ::Core::Path const& inputPath,
84 ::Core::Path const& zipOutputPath,
86 bool useLowMemMode,
87 ::Core::ZipUtils::ZipSettings const& zipSettings
88 ) const;
89
90 MCNAPI ::Bedrock::Result<void> $zip(
91 ::std::vector<::Core::PathBuffer<::std::string>> const& filesToZip,
92 ::Core::PathView zipOutputPath,
94 bool useLowMemMode,
95 ::std::function<::std::string(::Core::PathView)> overrideNameCallback,
96 ::Core::ZipUtils::ZipSettings const& zipSettings
97 ) const;
98
99 MCNAPI ::Bedrock::Result<void> $unzipInTransaction(
100 ::Core::Path const& zipInputPath,
101 ::Core::Path const& outputFolderPath,
103 bool useLowMemMode,
104 ::Core::ZipUtils::UnzipSettings const& unzipSettings
105 ) const;
106
107 MCNAPI ::Bedrock::Result<void> $unzipToFlatFile(
108 ::Core::Path const& zipInputPath,
109 ::Core::Path const& outputFolderPath,
111 ::Core::FileBufferingMode bufferMode,
112 ::Core::ZipUtils::UnzipSettings const& unzipSettings
113 ) const;
114
115 MCNAPI bool $getFilenames(
116 ::Core::Path const& zipPath,
117 ::std::vector<::Core::PathBuffer<::std::string>>& result,
118 ::Core::ZipUtils::UnzipSettings const& unzipSettings
119 ) const;
120
121 MCNAPI bool $exists(
122 ::Core::Path const& zipPath,
123 ::Core::Path const& filePath,
124 ::Core::ZipUtils::UnzipSettings const& unzipSettings
125 ) const;
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133};
134
135} // namespace Core::ZipUtils
Definition PathBuffer.h:8
Definition PathView.h:15
Definition Path.h:11
Definition IZipUtility.h:21
Definition UnzipSettings.h:7
Definition ZipProgress.h:7
Definition ZipSettings.h:7
Definition ZipUtility.h:22
MCAPI ::Bedrock::Result< void > $zip(::std::vector<::Core::PathBuffer<::std::string > > const &filesToZip, ::Core::PathView zipOutputPath, ::Core::ZipUtils::ZipProgress &progress, bool useLowMemMode, ::std::function<::std::string(::Core::PathView)> overrideNameCallback, ::Core::ZipUtils::ZipSettings const &zipSettings) const
MCAPI bool $exists(::Core::Path const &zipPath, ::Core::Path const &filePath, ::Core::ZipUtils::UnzipSettings const &unzipSettings) const
MCAPI ::Bedrock::Result< void > $unzipInTransaction(::Core::Path const &zipInputPath, ::Core::Path const &outputFolderPath, ::Core::ZipUtils::ZipProgress &progress, bool useLowMemMode, ::Core::ZipUtils::UnzipSettings const &unzipSettings) const
MCAPI ::Bedrock::Result< void > $zip(::Core::Path const &inputPath, ::Core::Path const &zipOutputPath, ::Core::ZipUtils::ZipProgress &progress, bool useLowMemMode, ::Core::ZipUtils::ZipSettings const &zipSettings) const
MCAPI ::Bedrock::Result< void > $unzipToFlatFile(::Core::Path const &zipInputPath, ::Core::Path const &outputFolderPath, ::Core::ZipUtils::ZipProgress &progress, ::Core::FileBufferingMode bufferMode, ::Core::ZipUtils::UnzipSettings const &unzipSettings) const
MCAPI bool $getFilenames(::Core::Path const &zipPath, ::std::vector<::Core::PathBuffer<::std::string > > &result, ::Core::ZipUtils::UnzipSettings const &unzipSettings) const
static MCAPI void ** $vftable()
Definition Path.h:16
Definition zip.h:5