ReXGlue SDK
Loading...
Searching...
No Matches
mount.h File Reference
#include <filesystem>
#include <string>
#include <vector>
#include <rex/bit.h>
#include <rex/types.h>

Go to the source code of this file.

Classes

struct  rex::filesystem::MountEntry

Namespaces

namespace  rex

Enumerations

enum class  rex::filesystem::ProviderType : u8 { kHostDirectory , kSTFS , kDiscImage , kNull }
enum class  rex::filesystem::MountFlags : u8 { kNone = 0 , kWritable = 1 }

Functions

template<FlagsEnum E>
constexpr bool rex::filesystem::HasFlags (E value, E flags)
template<FlagsEnum E>
constexpr E rex::filesystem::operator| (E lhs, E rhs)
template<FlagsEnum E>
constexpr E rex::filesystem::operator& (E lhs, E rhs)
template<FlagsEnum E>
constexpr E rex::filesystem::operator^ (E lhs, E rhs)
template<FlagsEnum E>
constexpr E rex::filesystem::operator~ (E value)
template<FlagsEnum E>
constexpr E & rex::filesystem::operator|= (E &lhs, E rhs)
template<FlagsEnum E>
constexpr E & rex::filesystem::operator&= (E &lhs, E rhs)
template<FlagsEnum E>
constexpr E & rex::filesystem::operator^= (E &lhs, E rhs)

Detailed Description

License
BSD 3-Clause License See LICENSE file in the project root for full license text.

Enumeration Type Documentation

◆ MountFlags

enum class rex::filesystem::MountFlags : u8
strong
Enumerator
kNone 

Read only.

kWritable 

Writes, creation and deletion are allowed.

◆ ProviderType

enum class rex::filesystem::ProviderType : u8
strong
Enumerator
kSTFS 

An STFS or SVOD package file, detected from the header.

kDiscImage 

A GDFX disc image.

kNull 

Answers a fixed list of paths with empty files.

Function Documentation

◆ HasFlags()

template<FlagsEnum E>
bool rex::HasFlags ( E value,
E flags )
nodiscardconstexpr

Reports whether a set holds every flag of another set.

◆ operator&=()

template<FlagsEnum E>
E & rex::operator&= ( E & lhs,
E rhs )
constexpr

Keeps only the flags of a set that another set holds, in place.

Returns
lhs.

◆ operator^=()

template<FlagsEnum E>
E & rex::operator^= ( E & lhs,
E rhs )
constexpr

Toggles flags of a set in place.

Returns
lhs.

◆ operator|=()

template<FlagsEnum E>
E & rex::operator|= ( E & lhs,
E rhs )
constexpr

Adds flags to a set in place.

Returns
lhs.