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 MCAPI ::Core::FlatFileSearchResult
41 _findFileOrDirectoryEntry(::Core::PathView filePath, ::Core::PathView manifestPath, bool skipDeleted);
42
43 MCAPI ::Core::Result createFlatFile(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath);
44
45 MCAPI ::Core::Result deleteFileOrDirectory(
46 ::Core::PathView fileOrDirectoryPath,
47 ::Core::PathView manifestPath,
48 bool directoryDeleteEnabled,
49 bool deleteRecursively
50 );
51
52 MCAPI bool fileOrDirectoryExists(::Core::PathView path, ::Core::PathView manifestPath);
53
54 MCAPI bool isDirectoryPathAFlatFile(::Core::PathView directoryPath);
55
56 MCAPI ::Core::Result iterateOverDirectory(
57 ::Core::PathView directoryPath,
58 ::Core::PathView manifestPath,
59 ::Core::DirectoryIterationFlags flags,
61 );
62
63 MCAPI ::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
71 MCAPI bool shouldAccessFlatFile(
73 ::Core::PathBuffer<::std::string>& manifestFilePath,
74 bool shouldIncludeParentDir
75 );
76
77 MCAPI ~FlatFileSystemImpl();
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCFOLD void $dtor();
84 // NOLINTEND
85};
86
87} // namespace Core
Definition FileOpenMode.h:7
Definition FlatFileSystemImpl.h:23
Definition PathBuffer.h:8
Definition PathView.h:16
Definition Result.h:17
Definition Result.h:6
Definition function_ref.h:60
Definition DirectoryIterationItem.h:15
Definition Alias.h:14