|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Identifies a single asset file on disk. More...
#include <AssetPath.h>
Public Member Functions | |
| Path ()=default | |
| Path (const std::filesystem::path &path) | |
| Path (std::filesystem::path &&path) noexcept | |
| const std::filesystem::path & | fsPath () const |
| const std::filesystem::path & | getFilePath () const |
| std::string | string () const |
| bool | empty () const |
| std::size_t | hash () const noexcept |
| operator const std::filesystem::path & () const | |
| bool | operator== (const Path &other) const |
| void | reset () |
Private Attributes | |
| std::filesystem::path | filePath = "" |
Identifies a single asset file on disk.
Path wraps std::filesystem::path so engine asset APIs do not expose raw filesystem paths as asset keys. Use MeshPath when addressing a named object inside a container file such as glTF.
Definition at line 13 of file AssetPath.h.
|
default |
| Asset::Path::Path | ( | const std::filesystem::path & | path | ) |
|
noexcept |
|
inlinenodiscard |
Definition at line 21 of file AssetPath.h.
References filePath.
|
inlinenodiscard |
Definition at line 18 of file AssetPath.h.
References filePath.
|
inlinenodiscard |
Definition at line 19 of file AssetPath.h.
References filePath.
Referenced by Engine::Core::AssetManager::getAsset().
|
nodiscardnoexcept |
|
inline |
Definition at line 24 of file AssetPath.h.
References filePath.
|
inline |
Definition at line 26 of file AssetPath.h.
References filePath, and Path().
| void Asset::Path::reset | ( | ) |
|
inlinenodiscard |
Definition at line 20 of file AssetPath.h.
References filePath.
|
private |
Definition at line 31 of file AssetPath.h.
Referenced by empty(), fsPath(), getFilePath(), operator const std::filesystem::path &(), operator==(), and string().