neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::resource_manager Class Reference

#include <resource_manager.hpp>

Inheritance diagram for neogfx::resource_manager:
neogfx::i_resource_manager neolib::services::i_service

Public Member Functions

 resource_manager ()
 
void merge (i_resource_manager &aResourceManager) override
 
void add_resource (i_string const &aUri, const void *aResourceData, std::size_t aResourceSize) override
 
void add_module_resource (i_string const &aUri, const void *aResourceData, std::size_t aResourceSize) override
 
void load_resource (i_string const &aUri, i_ref_ptr< i_resource > &aResult) override
 
void cleanup () override
 
void clean () override
 
neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & resources () override
 
neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & resource_archives () override
 
virtual void add_resource (i_string const &aUri, const void *aResourceData, std::size_t aResourceSize)=0
 
void add_resource (std::string const &aUri, const void *aResourceData, std::size_t aResourceSize)
 
virtual void add_module_resource (i_string const &aUri, const void *aResourceData, std::size_t aResourceSize)=0
 
void add_module_resource (std::string const &aUri, const void *aResourceData, std::size_t aResourceSize)
 
virtual void load_resource (i_string const &aUri, i_ref_ptr< i_resource > &aResult)=0
 
ref_ptr< i_resourceload_resource (std::string const &aUri)
 
- Public Member Functions inherited from neogfx::i_resource_manager
void add_resource (std::string const &aUri, const void *aResourceData, std::size_t aResourceSize)
 
void add_module_resource (std::string const &aUri, const void *aResourceData, std::size_t aResourceSize)
 
ref_ptr< i_resourceload_resource (std::string const &aUri)
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static resource_managerinstance ()
 
- Static Public Member Functions inherited from neogfx::i_resource_manager
static uuid const & iid ()
 

Detailed Description

Definition at line 29 of file resource_manager.hpp.

Constructor & Destructor Documentation

◆ resource_manager()

neogfx::resource_manager::resource_manager ( )

Member Function Documentation

◆ add_module_resource() [1/3]

void neogfx::resource_manager::add_module_resource ( i_string const &  aUri,
const void *  aResourceData,
std::size_t  aResourceSize 
)
overridevirtual

◆ add_module_resource() [2/3]

virtual void neogfx::i_resource_manager::add_module_resource ( i_string const &  aUri,
const void *  aResourceData,
std::size_t  aResourceSize 
)
virtual

◆ add_module_resource() [3/3]

void neogfx::i_resource_manager::add_module_resource ( std::string const &  aUri,
const void *  aResourceData,
std::size_t  aResourceSize 
)
inline

Definition at line 48 of file i_resource_manager.hpp.

◆ add_resource() [1/3]

void neogfx::resource_manager::add_resource ( i_string const &  aUri,
const void *  aResourceData,
std::size_t  aResourceSize 
)
overridevirtual

◆ add_resource() [2/3]

virtual void neogfx::i_resource_manager::add_resource ( i_string const &  aUri,
const void *  aResourceData,
std::size_t  aResourceSize 
)
virtual

◆ add_resource() [3/3]

void neogfx::i_resource_manager::add_resource ( std::string const &  aUri,
const void *  aResourceData,
std::size_t  aResourceSize 
)
inline

Definition at line 44 of file i_resource_manager.hpp.

◆ clean()

void neogfx::resource_manager::clean ( )
overridevirtual

◆ cleanup()

void neogfx::resource_manager::cleanup ( )
overridevirtual

◆ instance()

static resource_manager & neogfx::resource_manager::instance ( )
static

◆ load_resource() [1/3]

void neogfx::resource_manager::load_resource ( i_string const &  aUri,
i_ref_ptr< i_resource > &  aResult 
)
overridevirtual

◆ load_resource() [2/3]

virtual void neogfx::i_resource_manager::load_resource ( i_string const &  aUri,
i_ref_ptr< i_resource > &  aResult 
)
virtual

◆ load_resource() [3/3]

ref_ptr< i_resource > neogfx::i_resource_manager::load_resource ( std::string const &  aUri)
inline

Definition at line 52 of file i_resource_manager.hpp.

◆ merge()

void neogfx::resource_manager::merge ( i_resource_manager aResourceManager)
overridevirtual

◆ resource_archives()

neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & neogfx::resource_manager::resource_archives ( )
overridevirtual

◆ resources()

neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & neogfx::resource_manager::resources ( )
overridevirtual

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