Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Asset::Path Struct Reference

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 = ""

Detailed Description

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.

Constructor & Destructor Documentation

◆ Path() [1/3]

Asset::Path::Path ( )
default

Referenced by operator==().

Here is the caller graph for this function:

◆ Path() [2/3]

Asset::Path::Path ( const std::filesystem::path & path)

◆ Path() [3/3]

Asset::Path::Path ( std::filesystem::path && path)
noexcept

Member Function Documentation

◆ empty()

bool Asset::Path::empty ( ) const
inlinenodiscard

Definition at line 21 of file AssetPath.h.

References filePath.

◆ fsPath()

const std::filesystem::path & Asset::Path::fsPath ( ) const
inlinenodiscard

Definition at line 18 of file AssetPath.h.

References filePath.

◆ getFilePath()

const std::filesystem::path & Asset::Path::getFilePath ( ) const
inlinenodiscard

Definition at line 19 of file AssetPath.h.

References filePath.

Referenced by Engine::Core::AssetManager::getAsset().

Here is the caller graph for this function:

◆ hash()

std::size_t Asset::Path::hash ( ) const
nodiscardnoexcept

◆ operator const std::filesystem::path &()

Asset::Path::operator const std::filesystem::path & ( ) const
inline

Definition at line 24 of file AssetPath.h.

References filePath.

◆ operator==()

bool Asset::Path::operator== ( const Path & other) const
inline

Definition at line 26 of file AssetPath.h.

References filePath, and Path().

Here is the call graph for this function:

◆ reset()

void Asset::Path::reset ( )

◆ string()

std::string Asset::Path::string ( ) const
inlinenodiscard

Definition at line 20 of file AssetPath.h.

References filePath.

Member Data Documentation

◆ filePath

std::filesystem::path Asset::Path::filePath = ""
private

The documentation for this struct was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Files/AssetPath.h