LeviLamina
Loading...
Searching...
No Matches
FlatFileSystemImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/DirectoryIterationFlags.h"
7#include "mc/deps/core/file/FileBufferingMode.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/platform/brstd/function_ref.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Core { class FileImpl; }
14namespace Core { class FileOpenMode; }
15namespace Core { class FlatFileSearchResult; }
16namespace Core { class PathView; }
17namespace Core { class Result; }
18namespace Core { struct DirectoryIterationItem; }
19namespace Core { struct ExcludedPath; }
20// clang-format on
21
22namespace Core {
23
24class FlatFileSystemImpl {
25public:
26 // member variables
27 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 FlatFileSystemImpl& operator=(FlatFileSystemImpl const&);
35 FlatFileSystemImpl(FlatFileSystemImpl const&);
36 FlatFileSystemImpl();
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI ::Core::FlatFileSearchResult
42 _findFileOrDirectoryEntry(::Core::PathView filePath, ::Core::PathView manifestPath, bool skipDeleted);
43
44 MCNAPI ::Core::Result _getSeekPositionAndSize(
45 ::Core::PathView filePath,
46 ::Core::PathView manifestPath,
47 uint64& seekPositionOut,
48 uint64& fileSizeOut
49 );
50
51 MCNAPI ::Core::Result copyFlatFile(
52 ::Core::PathView sourceDirectoryPath,
53 ::Core::PathView targetDirectoryPath,
54 ::std::vector<::Core::ExcludedPath> const& excludedDirectories,
55 ::std::vector<::Core::ExcludedPath> const& excludedFiles
56 );
57
58 MCNAPI ::Core::Result createFlatFile(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath);
59
60 MCNAPI ::Core::Result deleteFileOrDirectory(
61 ::Core::PathView fileOrDirectoryPath,
62 ::Core::PathView manifestPath,
63 bool directoryDeleteEnabled,
64 bool deleteRecursively
65 );
66
68
69 MCNAPI bool isDirectoryPathAFlatFile(::Core::PathView directoryPath);
70
71 MCNAPI ::Core::Result iterateOverDirectory(
72 ::Core::PathView directoryPath,
73 ::Core::PathView manifestPath,
74 ::Core::DirectoryIterationFlags flags,
76 );
77
78 MCNAPI ::Core::Result openFlatFile(
79 ::std::unique_ptr<::Core::FileImpl>& fileOut,
80 ::Core::PathView filePath,
81 ::Core::PathView manifestPath,
82 ::Core::FileOpenMode openMode,
83 ::Core::FileBufferingMode fileBufferingMode
84 );
85
88 ::Core::PathBuffer<::std::string>& manifestFilePath,
89 bool shouldIncludeParentDir
90 );
91 // NOLINTEND
92};
93
94} // namespace Core
Definition FileImpl.h:18
Definition FileOpenMode.h:7
Definition FlatFileSearchResult.h:7
MCAPI bool isDirectoryPathAFlatFile(::Core::PathView directoryPath)
MCAPI::Core::Result _getSeekPositionAndSize(::Core::PathView filePath, ::Core::PathView manifestPath, uint64 &seekPositionOut, uint64 &fileSizeOut)
MCAPI::Core::Result deleteFileOrDirectory(::Core::PathView fileOrDirectoryPath, ::Core::PathView manifestPath, bool directoryDeleteEnabled, bool deleteRecursively)
MCAPI::Core::Result createFlatFile(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath)
MCAPI bool fileOrDirectoryExists(::Core::PathView path, ::Core::PathView manifestPath)
MCAPI::Core::Result iterateOverDirectory(::Core::PathView directoryPath, ::Core::PathView manifestPath, ::Core::DirectoryIterationFlags flags, ::brstd::function_ref<::Core::Result(::Core::DirectoryIterationItem const &)> callbackFunction)
MCAPI::Core::FlatFileSearchResult _findFileOrDirectoryEntry(::Core::PathView filePath, ::Core::PathView manifestPath, bool skipDeleted)
MCAPI::Core::Result openFlatFile(::std::unique_ptr<::Core::FileImpl > &fileOut, ::Core::PathView filePath, ::Core::PathView manifestPath, ::Core::FileOpenMode openMode, ::Core::FileBufferingMode fileBufferingMode)
MCAPI::Core::Result copyFlatFile(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath, ::std::vector<::Core::ExcludedPath > const &excludedDirectories, ::std::vector<::Core::ExcludedPath > const &excludedFiles)
MCAPI bool shouldAccessFlatFile(::Core::PathView path, ::Core::PathBuffer<::std::string > &manifestFilePath, bool shouldIncludeParentDir)
Definition PathBuffer.h:8
Definition PathView.h:19
Definition Result.h:11
Definition function_ref.h:60
Definition DirectoryIterationItem.h:12
Definition ExcludedPath.h:7
Definition Alias.h:14