ReXGlue SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
mount.h
Go to the documentation of this file.
1
10
11
#pragma once
12
13
#include <filesystem>
14
#include <string>
15
#include <vector>
16
17
#include <
rex/bit.h
>
18
#include <
rex/types.h
>
19
20
namespace
rex::filesystem {
21
22
using
rex::HasFlags
;
23
using
rex::operator|;
24
using
rex::operator&;
25
using
rex::operator^;
26
using
rex::operator~;
27
using
rex::operator|=;
28
using
rex::operator&=;
29
using
rex::operator^=;
30
31
enum class
ProviderType
: u8 {
32
kHostDirectory,
33
kSTFS
,
34
kDiscImage
,
35
kNull
,
36
};
37
38
enum class
MountFlags
: u8 {
39
kNone = 0,
40
kWritable
= 1,
41
};
42
43
struct
MountEntry
{
44
std::string
path
;
45
ProviderType
type = ProviderType::kHostDirectory;
46
std::filesystem::path
source
;
47
MountFlags
flags =
MountFlags::kNone
;
48
std::vector<std::string>
null_paths
;
49
};
50
51
}
// namespace rex::filesystem
52
53
template
<>
54
inline
constexpr
bool
rex::is_flags_enum<rex::filesystem::MountFlags>
=
true
;
bit.h
rex::filesystem::ProviderType
ProviderType
Definition
mount.h:31
rex::filesystem::ProviderType::kSTFS
@ kSTFS
Definition
mount.h:33
rex::filesystem::ProviderType::kDiscImage
@ kDiscImage
Definition
mount.h:34
rex::filesystem::ProviderType::kNull
@ kNull
Definition
mount.h:35
rex::filesystem::MountFlags
MountFlags
Definition
mount.h:38
rex::filesystem::MountFlags::kWritable
@ kWritable
Definition
mount.h:40
rex::filesystem::MountFlags::kNone
@ kNone
Definition
mount.h:39
rex::is_flags_enum
constexpr bool is_flags_enum
Definition
bit.h:422
rex::HasFlags
constexpr bool HasFlags(E value, E flags)
Definition
bit.h:483
rex::filesystem::MountEntry
Definition
mount.h:43
rex::filesystem::MountEntry::source
std::filesystem::path source
Definition
mount.h:46
rex::filesystem::MountEntry::null_paths
std::vector< std::string > null_paths
Definition
mount.h:48
rex::filesystem::MountEntry::path
std::string path
Definition
mount.h:44
types.h
Integer types, byte order wrappers and size literals.
rex
filesystem
mount.h
Generated by
1.18.0