DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::utils::IAssetManager Class Referenceabstract

#include <IAssetManager.hpp>

Inheritance diagram for dotnamecpp::utils::IAssetManager:
Collaboration diagram for dotnamecpp::utils::IAssetManager:

Public Member Functions

virtual ~IAssetManager ()=default
virtual const std::filesystem::path & getAssetsPath () const=0
 Get the Assets Path object.
virtual std::filesystem::path resolveAsset (const std::filesystem::path &relativePath) const=0
 Resolve the full path of an asset given its relative path.
virtual bool assetExists (const std::filesystem::path &relativePath) const=0
 Check if an asset exists given its relative path.
virtual bool validate () const=0
 Validate the asset manager configuration.

Constructor & Destructor Documentation

◆ ~IAssetManager()

virtual dotnamecpp::assets::IAssetManager::~IAssetManager ( )
virtualdefault

Member Function Documentation

◆ assetExists()

virtual bool dotnamecpp::assets::IAssetManager::assetExists ( const std::filesystem::path & relativePath) const
nodiscardpure virtual

Check if an asset exists given its relative path.

Parameters
relativePath
Returns
true
false

◆ getAssetsPath()

virtual const std::filesystem::path & dotnamecpp::assets::IAssetManager::getAssetsPath ( ) const
nodiscardpure virtual

Get the Assets Path object.

Returns
const std::filesystem::path&

◆ resolveAsset()

virtual std::filesystem::path dotnamecpp::assets::IAssetManager::resolveAsset ( const std::filesystem::path & relativePath) const
nodiscardpure virtual

Resolve the full path of an asset given its relative path.

Parameters
relativePath
Returns
std::filesystem::path

◆ validate()

virtual bool dotnamecpp::assets::IAssetManager::validate ( ) const
nodiscardpure virtual

Validate the asset manager configuration.

Returns
true
false

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