A registry that keeps track of all resource importers for a ResourceManager.
More...
#include <CeresEngine/Resource/Importer/ResourceImporterRegistry.hpp>
A registry that keeps track of all resource importers for a ResourceManager.
◆ ResourceImporterRegistry()
| CeresEngine::ResourceImporterRegistry::ResourceImporterRegistry |
( |
ResourceManager & |
resourceManager | ) |
|
|
explicit |
Creates a new importer registry.
- Parameters
-
| resourceManager | The owning resource manager. |
◆ ~ResourceImporterRegistry()
| CeresEngine::ResourceImporterRegistry::~ResourceImporterRegistry |
( |
| ) |
|
Destroys the importer registry and destroys all importers associated with it.
◆ add() [1/2]
| T & CeresEngine::ResourceImporterRegistry::add |
( |
Args &&... |
args | ) |
|
|
inline |
Adds a new resource importer to the registry.
- Parameters
-
| importer | The importer to be registered into the registry. |
- Returns
- A reference to the registered importer.
◆ add() [2/2]
Adds a new resource importer to the registry.
- Parameters
-
| importer | The importer to be registered into the registry. |
- Returns
- A reference to the registered importer.
◆ get()
Finds an importer suitable for loading the given url.
- Parameters
-
| url | The resource URL to be loaded. |
- Returns
- A continuable that returns a suitable importer for loading the given URL, if any exists.
◆ remove()
Removes a previously registered resource importer.
- Parameters
-
| importer | The importer to be removed from the registry. |
◆ mImporters
A vector that contains all registered importers.
◆ mResourceManager
The owning resource manager.
The documentation for this class was generated from the following file: