LeviLamina
Loading...
Searching...
No Matches
FlatFileOperations.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/string/BasicStackString.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class FileSystemImpl; }
12namespace Core { class FlatFileManifestInfo; }
13namespace Core { class PathView; }
14namespace Core { class Result; }
15namespace Core { struct ExcludedPath; }
16// clang-format on
17
18namespace Core {
19
21public:
22 // static functions
23 // NOLINTBEGIN
24 MCAPI static ::Core::Result copyFlatFile(
25 ::Core::FileSystemImpl* sourceTransaction,
26 ::Core::PathView sourceDirectoryPath,
27 ::Core::FileSystemImpl* targetTransaction,
28 ::Core::PathView targetDirectoryPath,
29 ::std::vector<::Core::ExcludedPath> const& exclusionDirectories,
30 ::std::vector<::Core::ExcludedPath> const& excludedFiles
31 );
32
33 MCAPI static ::Core::Result createFlatFile(
34 ::Core::FileSystemImpl* sourceTransaction,
35 ::Core::PathView sourceDirectoryPath,
36 ::Core::FileSystemImpl* targetTransaction,
37 ::Core::PathView targetDirectoryPath,
38 ::std::vector<::Core::ExcludedPath> const& exclusionPaths,
39 bool deleteSourceDirectory
40 );
41
42 MCAPI static ::Core::Result createFlatFileManifest(
43 ::Core::FileSystemImpl& transaction,
44 ::Core::PathView flatFileManifestPath,
45 ::std::vector<::Core::FlatFileManifestInfo> const& manifestInfoVector
46 );
47
48 MCAPI static ::Core::Result replaceFlatFileManifest(
49 ::Core::FileSystemImpl& transaction,
50 ::Core::PathView flatFileManifestPath,
51 ::std::vector<::Core::FlatFileManifestInfo> const& manifestInfoVector,
52 bool keepCached
53 );
54
55 MCAPI static ::Core::Result transferFlatFileDirectory(
56 ::Core::FileSystemImpl* sourceTransaction,
57 ::Core::PathView sourceDirectoryPath,
58 ::Core::FileSystemImpl* targetTransaction,
59 ::Core::PathView targetDirectoryPath
60 );
61 // NOLINTEND
62
63public:
64 // static variables
65 // NOLINTBEGIN
66 MCAPI static uint64 const& FLAT_FILE_CURRENT_VERSION();
67
68 MCAPI static ::std::string const& FLAT_FILE_EMPTY_MANIFEST_FILE();
69
70 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& FLAT_FILE_EXTENSION();
71
72 MCAPI static uint64 const& FLAT_FILE_INVALID_VERSION();
73
74 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& FLAT_FILE_MANIFEST_EXTENSION();
75 // NOLINTEND
76};
77
78} // namespace Core
Definition FileSystemImpl.h:31
Definition FlatFileOperations.h:20
Definition PathView.h:16
Definition Result.h:6