LeviLamina
Loading...
Searching...
No Matches
FileSystem_windows.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/FileAccessType.h"
8#include "mc/deps/core/file/FileBufferingMode.h"
9#include "mc/deps/core/file/FileType.h"
10#include "mc/deps/core/file/file_system/FileSystemImpl.h"
11#include "mc/platform/brstd/function_ref.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace Core { class FileImpl; }
16namespace Core { class FileOpenMode; }
17namespace Core { class FileStorageArea; }
18namespace Core { class FlatFileManifestTracker; }
19namespace Core { class PathView; }
20namespace Core { class Result; }
21namespace Core { struct DirectoryIterationItem; }
22// clang-format on
23
24namespace Core {
25
27public:
28 // prevent constructor by default
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 7
35 virtual ::Core::Result _openFile(
36 ::std::unique_ptr<::Core::FileImpl>& uptFileOut,
37 ::Core::PathView filename,
38 ::Core::FileOpenMode fileOpenMode,
39 ::Core::FileBufferingMode bufferingMode
40 ) /*override*/;
41
42 // vIndex: 8
43 virtual bool _fileExists(::Core::PathView filePath) /*override*/;
44
45 // vIndex: 9
46 virtual ::Core::Result _deleteFile(::Core::PathView path) /*override*/;
47
48 // vIndex: 11
49 virtual ::Core::Result _getFileSize(::Core::PathView filePath, uint64* pFileSizeOut) /*override*/;
50
51 // vIndex: 12
52 virtual ::Core::Result _renameFile(::Core::PathView sourceFilePath, ::Core::PathView targetFilePath) /*override*/;
53
54 // vIndex: 17
55 virtual ::Core::Result _createOneDirectory(::Core::PathView directoryPath) /*override*/;
56
57 // vIndex: 21
58 virtual ::Core::Result _deleteEmptyDirectory(::Core::PathView directoryPath) /*override*/;
59
60 // vIndex: 20
61 virtual bool _directoryExists(::Core::PathView directoryPath) /*override*/;
62
63 // vIndex: 25
64 virtual ::Core::Result
65 _renameDirectory(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath) /*override*/;
66
67 // vIndex: 26
68 virtual ::Core::Result _iterateOverDirectory(
69 ::Core::PathView directoryPath,
70 ::Core::DirectoryIterationFlags flags,
72 ) /*override*/;
73
74 // vIndex: 32
75 virtual bool _fileOrDirectoryExists(::Core::PathView entryPath) /*override*/;
76
77 // vIndex: 45
78 virtual ::Core::Result _getLastModificationTime(::Core::PathView filePath, int64* pModificationTime) /*override*/;
79
80 // vIndex: 34
81 virtual ::Core::Result _getEntryType(::Core::PathView entryPath, ::Core::FileType& fileTypeOut) /*override*/;
82
83 // vIndex: 46
84 virtual ::Core::Result
85 _copyTimeAndAccessRights(::Core::PathView sourceEntryPath, ::Core::PathView targetEntryPath) /*override*/;
86
87 // vIndex: 0
88 virtual ~FileSystem_windows() /*override*/ = default;
89 // NOLINTEND
90
91public:
92 // member functions
93 // NOLINTBEGIN
95 ::Core::FileAccessType accessType,
96 ::std::shared_ptr<::Core::FileStorageArea> storageArea,
97 ::std::shared_ptr<::Core::FlatFileManifestTracker> manifestTracker
98 );
99
100 MCNAPI ::Core::Result _iterateOverDirectoryWide(
101 ::std::wstring const& directoryPath,
102 ::Core::DirectoryIterationFlags flags,
104 );
105
106 MCNAPI ::Core::Result
107 _makeFailureFromFileSystemResult(::std::error_code const& errorCode, char const* function, char const* fileContext);
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCNAPI void* $ctor(
114 ::Core::FileAccessType accessType,
115 ::std::shared_ptr<::Core::FileStorageArea> storageArea,
116 ::std::shared_ptr<::Core::FlatFileManifestTracker> manifestTracker
117 );
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCNAPI ::Core::Result $_openFile(
124 ::std::unique_ptr<::Core::FileImpl>& uptFileOut,
125 ::Core::PathView filename,
126 ::Core::FileOpenMode fileOpenMode,
127 ::Core::FileBufferingMode bufferingMode
128 );
129
130 MCNAPI bool $_fileExists(::Core::PathView filePath);
131
132 MCNAPI ::Core::Result $_deleteFile(::Core::PathView path);
133
134 MCNAPI ::Core::Result $_getFileSize(::Core::PathView filePath, uint64* pFileSizeOut);
135
136 MCNAPI ::Core::Result $_renameFile(::Core::PathView sourceFilePath, ::Core::PathView targetFilePath);
137
138 MCNAPI ::Core::Result $_createOneDirectory(::Core::PathView directoryPath);
139
140 MCNAPI ::Core::Result $_deleteEmptyDirectory(::Core::PathView directoryPath);
141
142 MCNAPI bool $_directoryExists(::Core::PathView directoryPath);
143
144 MCNAPI ::Core::Result $_renameDirectory(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath);
145
146 MCNAPI ::Core::Result $_iterateOverDirectory(
147 ::Core::PathView directoryPath,
148 ::Core::DirectoryIterationFlags flags,
150 );
151
153
154 MCNAPI ::Core::Result $_getLastModificationTime(::Core::PathView filePath, int64* pModificationTime);
155
156 MCNAPI ::Core::Result $_getEntryType(::Core::PathView entryPath, ::Core::FileType& fileTypeOut);
157
158 MCNAPI ::Core::Result $_copyTimeAndAccessRights(::Core::PathView sourceEntryPath, ::Core::PathView targetEntryPath);
159 // NOLINTEND
160
161public:
162 // vftables
163 // NOLINTBEGIN
164 MCNAPI static void** $vftable();
165 // NOLINTEND
166};
167
168} // namespace Core
Definition FileOpenMode.h:7
Definition FileSystemImpl.h:31
Definition FileSystem_windows.h:26
MCAPI::Core::Result $_deleteFile(::Core::PathView path)
MCAPI::Core::Result _makeFailureFromFileSystemResult(::std::error_code const &errorCode, char const *function, char const *fileContext)
MCAPI void * $ctor(::Core::FileAccessType accessType, ::std::shared_ptr<::Core::FileStorageArea > storageArea, ::std::shared_ptr<::Core::FlatFileManifestTracker > manifestTracker)
MCAPI bool $_directoryExists(::Core::PathView directoryPath)
MCAPI::Core::Result $_openFile(::std::unique_ptr<::Core::FileImpl > &uptFileOut, ::Core::PathView filename, ::Core::FileOpenMode fileOpenMode, ::Core::FileBufferingMode bufferingMode)
MCAPI::Core::Result $_getLastModificationTime(::Core::PathView filePath, int64 *pModificationTime)
MCAPI::Core::Result $_deleteEmptyDirectory(::Core::PathView directoryPath)
MCAPI::Core::Result $_renameDirectory(::Core::PathView sourceDirectoryPath, ::Core::PathView targetDirectoryPath)
MCAPI::Core::Result $_getEntryType(::Core::PathView entryPath, ::Core::FileType &fileTypeOut)
MCAPI bool $_fileOrDirectoryExists(::Core::PathView entryPath)
MCAPI::Core::Result $_getFileSize(::Core::PathView filePath, uint64 *pFileSizeOut)
MCAPI bool $_fileExists(::Core::PathView filePath)
MCAPI::Core::Result _iterateOverDirectoryWide(::std::wstring const &directoryPath, ::Core::DirectoryIterationFlags flags, ::brstd::function_ref<::Core::Result(::Core::DirectoryIterationItem const &)> fx)
static MCAPI void ** $vftable()
MCAPI::Core::Result $_createOneDirectory(::Core::PathView directoryPath)
MCAPI FileSystem_windows(::Core::FileAccessType accessType, ::std::shared_ptr<::Core::FileStorageArea > storageArea, ::std::shared_ptr<::Core::FlatFileManifestTracker > manifestTracker)
MCAPI::Core::Result $_copyTimeAndAccessRights(::Core::PathView sourceEntryPath, ::Core::PathView targetEntryPath)
MCAPI::Core::Result $_iterateOverDirectory(::Core::PathView directoryPath, ::Core::DirectoryIterationFlags flags, ::brstd::function_ref<::Core::Result(::Core::DirectoryIterationItem const &)> fx)
MCAPI::Core::Result $_renameFile(::Core::PathView sourceFilePath, ::Core::PathView targetFilePath)
Definition PathView.h:16
Definition Result.h:13
Definition function_ref.h:60
Definition DirectoryIterationItem.h:15