Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::res::ResourceManager Class Reference

Static resource manager. More...

#include <ResourceManager.h>

Public Types

using MapType = std::map<std::string, Resource::Ptr>
 

Public Member Functions

 ResourceManager ()=default
 
virtual ~ResourceManager ()=default
 
Resource::Ptr getResource (const std::string &name) const
 Get resource by name.
 
decltype(auto) begin () const
 
decltype(auto) end () const
 

Protected Attributes

MapType resourceMap
 

Detailed Description

Static resource manager.

Member Typedef Documentation

◆ MapType

using sese::res::ResourceManager::MapType = std::map<std::string, Resource::Ptr>

Constructor & Destructor Documentation

◆ ResourceManager()

sese::res::ResourceManager::ResourceManager ( )
default

◆ ~ResourceManager()

virtual sese::res::ResourceManager::~ResourceManager ( )
virtualdefault

Member Function Documentation

◆ begin()

decltype(auto) sese::res::ResourceManager::begin ( ) const
inlinenodiscard

References resourceMap.

◆ end()

decltype(auto) sese::res::ResourceManager::end ( ) const
inlinenodiscard

References resourceMap.

◆ getResource()

sese::res::Resource::Ptr sese::res::ResourceManager::getResource ( const std::string & name) const
nodiscard

Get resource by name.

Parameters
nameResource name
Return values
nullptrResource does not exist

References resourceMap.

Member Data Documentation

◆ resourceMap

MapType sese::res::ResourceManager::resourceMap
protected

Referenced by begin(), end(), and getResource().


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