Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::ResourcePath Struct Reference

#include <ResourcePath.h>

Public Types

template<size_t N>
using StringReturnType = std::conditional_t<(N > 0), Str< N >, Divide::string >
 

Public Member Functions

 ResourcePath ()=default
 
 ResourcePath (const std::string_view path)
 
size_t length () const noexcept
 
bool empty () const noexcept
 
ResourcePathappend (std::string_view str)
 
ResourcePathmakeRelative (const ResourcePath &base)
 
ResourcePath getRelative (const ResourcePath &base) const
 
template<size_t N = 0>
StringReturnType< N > string () const noexcept
 
 PROPERTY_R (std::filesystem::path, fileSystemPath)
 

Detailed Description

Definition at line 46 of file ResourcePath.h.

Member Typedef Documentation

◆ StringReturnType

template<size_t N>
using Divide::ResourcePath::StringReturnType = std::conditional_t<(N > 0), Str<N>, Divide::string>

Definition at line 61 of file ResourcePath.h.

Constructor & Destructor Documentation

◆ ResourcePath() [1/2]

Divide::ResourcePath::ResourcePath ( )
default

◆ ResourcePath() [2/2]

Divide::ResourcePath::ResourcePath ( const std::string_view  path)
inlineexplicit

Definition at line 50 of file ResourcePath.h.

Member Function Documentation

◆ append()

ResourcePath & Divide::ResourcePath::append ( std::string_view  str)

Definition at line 18 of file ResourcePath.cpp.

◆ empty()

bool Divide::ResourcePath::empty ( ) const
noexcept

Definition at line 13 of file ResourcePath.cpp.

◆ getRelative()

ResourcePath Divide::ResourcePath::getRelative ( const ResourcePath base) const

Definition at line 30 of file ResourcePath.cpp.

◆ length()

size_t Divide::ResourcePath::length ( ) const
noexcept

Definition at line 8 of file ResourcePath.cpp.

◆ makeRelative()

ResourcePath & Divide::ResourcePath::makeRelative ( const ResourcePath base)

Definition at line 24 of file ResourcePath.cpp.

◆ PROPERTY_R()

Divide::ResourcePath::PROPERTY_R ( std::filesystem::path  ,
fileSystemPath   
)

◆ string()

template<size_t N = 0>
StringReturnType< N > Divide::ResourcePath::string ( ) const
inlinenoexcept

Definition at line 64 of file ResourcePath.h.


The documentation for this struct was generated from the following files: