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; }
19// clang-format on
20
21namespace Core {
22
24public:
25 // member variables
26 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 FlatFileSystemImpl& operator=(FlatFileSystemImpl const&);
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCNAPI ::Core::FlatFileSearchResult
41 _findFileOrDirectoryEntry(::Core::PathView filePath, ::Core::PathView manifestPath, bool skipDeleted);
42
43 MCNAPI ::Core::Result createFlatFile(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath);
44
45 MCNAPI ::Core::Result deleteFileOrDirectory(
46 ::Core::PathView fileOrDirectoryPath,
47 ::Core::PathView manifestPath,
48 bool directoryDeleteEnabled,
49 bool deleteRecursively
50 );
51
53
54 MCNAPI bool isDirectoryPathAFlatFile(::Core::PathView directoryPath);
55
56 MCNAPI ::Core::Result iterateOverDirectory(
57 ::Core::PathView directoryPath,
58 ::Core::PathView manifestPath,
59 ::Core::DirectoryIterationFlags flags,
61 );
62
63 MCNAPI ::Core::Result openFlatFile(
64 ::std::unique_ptr<::Core::FileImpl>& fileOut,
65 ::Core::PathView filePath,
66 ::Core::PathView manifestPath,
67 ::Core::FileOpenMode openMode,
68 ::Core::FileBufferingMode fileBufferingMode
69 );
70
73 ::Core::PathBuffer<::std::string>& manifestFilePath,
74 bool shouldIncludeParentDir
75 );
76
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCNAPI void $dtor();
84 // NOLINTEND
85};
86
87} // namespace Core
Definition FileOpenMode.h:7
Definition FlatFileSystemImpl.h:23
MCAPI bool isDirectoryPathAFlatFile(::Core::PathView directoryPath)
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 bool shouldAccessFlatFile(::Core::PathView path, ::Core::PathBuffer<::std::string > &manifestFilePath, bool shouldIncludeParentDir)
Definition PathBuffer.h:8
Definition PathView.h:16
Definition Result.h:13
Definition function_ref.h:60
Definition DirectoryIterationItem.h:15
Definition Alias.h:14