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 MCNAPI 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 MCNAPI 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 MCNAPI static ::Core::Result createFlatFileManifest(
43 ::Core::FileSystemImpl& transaction,
44 ::Core::PathView flatFileManifestPath,
45 ::std::vector<::Core::FlatFileManifestInfo> const& manifestInfoVector
46 );
47
48 MCNAPI 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 MCNAPI 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 MCNAPI static uint64 const& FLAT_FILE_CURRENT_VERSION();
67
68 MCNAPI static ::std::string const& FLAT_FILE_EMPTY_MANIFEST_FILE();
69
70 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& FLAT_FILE_EXTENSION();
71
72 MCNAPI static uint64 const& FLAT_FILE_INVALID_VERSION();
73
74 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& FLAT_FILE_MANIFEST_EXTENSION();
75
76 MCNAPI static uint64 const& FLAT_FILE_WRITE_CHUNK_SIZE();
77 // NOLINTEND
78};
79
80} // namespace Core
Definition FileSystemImpl.h:31
Definition FlatFileOperations.h:20
static MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > const & FLAT_FILE_MANIFEST_EXTENSION()
static MCAPI ::Core::Result createFlatFile(::Core::FileSystemImpl *sourceTransaction, ::Core::PathView sourceDirectoryPath, ::Core::FileSystemImpl *targetTransaction, ::Core::PathView targetDirectoryPath, ::std::vector<::Core::ExcludedPath > const &exclusionPaths, bool deleteSourceDirectory)
static MCAPI ::Core::Result replaceFlatFileManifest(::Core::FileSystemImpl &transaction, ::Core::PathView flatFileManifestPath, ::std::vector<::Core::FlatFileManifestInfo > const &manifestInfoVector, bool keepCached)
static MCAPI ::std::string const & FLAT_FILE_EMPTY_MANIFEST_FILE()
static MCAPI ::Core::Result transferFlatFileDirectory(::Core::FileSystemImpl *sourceTransaction, ::Core::PathView sourceDirectoryPath, ::Core::FileSystemImpl *targetTransaction, ::Core::PathView targetDirectoryPath)
static MCAPI uint64 const & FLAT_FILE_WRITE_CHUNK_SIZE()
static MCAPI ::Core::Result createFlatFileManifest(::Core::FileSystemImpl &transaction, ::Core::PathView flatFileManifestPath, ::std::vector<::Core::FlatFileManifestInfo > const &manifestInfoVector)
static MCAPI uint64 const & FLAT_FILE_INVALID_VERSION()
static MCAPI ::Core::Result copyFlatFile(::Core::FileSystemImpl *sourceTransaction, ::Core::PathView sourceDirectoryPath, ::Core::FileSystemImpl *targetTransaction, ::Core::PathView targetDirectoryPath, ::std::vector<::Core::ExcludedPath > const &exclusionDirectories, ::std::vector<::Core::ExcludedPath > const &excludedFiles)
static MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > const & FLAT_FILE_EXTENSION()
static MCAPI uint64 const & FLAT_FILE_CURRENT_VERSION()
Definition PathView.h:16