Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::data::ResourcePaths Class Referencefinal

#include <ResourcePaths.hpp>

Public Member Functions

std::expected< std::filesystem::path, DataError > resolve (std::string_view relativePath) const
 
std::span< const std::filesystem::path > roots () const noexcept
 

Static Public Member Functions

static std::expected< ResourcePaths, DataError > create (std::span< const std::filesystem::path > roots)
 

Detailed Description

Definition at line 15 of file ResourcePaths.hpp.

Member Function Documentation

◆ create()

std::expected< ResourcePaths, DataError > monopoly::data::ResourcePaths::create ( std::span< const std::filesystem::path >  roots)
static

Definition at line 160 of file ResourcePaths.cpp.

◆ resolve()

std::expected< std::filesystem::path, DataError > monopoly::data::ResourcePaths::resolve ( std::string_view  relativePath) const

Definition at line 216 of file ResourcePaths.cpp.

◆ roots()

std::span< const std::filesystem::path > monopoly::data::ResourcePaths::roots ( ) const
noexcept

Definition at line 278 of file ResourcePaths.cpp.


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