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

#include <i_resource_manager.hpp>

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

Public Member Functions

virtual void merge (i_resource_manager &aResourceManager)=0
 
virtual void add_resource (i_string const &aUri, const void *aResourceData, std::size_t aResourceSize)=0
 
virtual void add_module_resource (i_string const &aUri, const void *aResourceData, std::size_t aResourceSize)=0
 
virtual void load_resource (i_string const &aUri, i_ref_ptr< i_resource > &aResult)=0
 
virtual void cleanup ()=0
 
virtual void clean ()=0
 
virtual neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & resources ()=0
 
virtual neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & resource_archives ()=0
 
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 uuid const & iid ()
 

Detailed Description

Definition at line 29 of file i_resource_manager.hpp.

Member Function Documentation

◆ add_module_resource() [1/2]

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

◆ add_module_resource() [2/2]

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/2]

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

◆ add_resource() [2/2]

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()

virtual void neogfx::i_resource_manager::clean ( )
pure virtual

Implemented in neogfx::resource_manager.

◆ cleanup()

virtual void neogfx::i_resource_manager::cleanup ( )
pure virtual

Implemented in neogfx::resource_manager.

◆ iid()

static uuid const & neogfx::i_resource_manager::iid ( )
inlinestatic

Definition at line 59 of file i_resource_manager.hpp.

◆ load_resource() [1/2]

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

◆ load_resource() [2/2]

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()

virtual void neogfx::i_resource_manager::merge ( i_resource_manager aResourceManager)
pure virtual

Implemented in neogfx::resource_manager.

◆ resource_archives()

virtual neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & neogfx::i_resource_manager::resource_archives ( )
pure virtual

Implemented in neogfx::resource_manager.

◆ resources()

virtual neolib::i_map< i_string, neolib::i_variant< i_ref_ptr< i_resource >, i_weak_ref_ptr< i_resource > > > const & neogfx::i_resource_manager::resources ( )
pure virtual

Implemented in neogfx::resource_manager.


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