![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Core/Resource/Repository.h>
Base interface for a ImFusion resource repository. More...
Inheritance diagram for Repository:Base interface for a ImFusion resource repository.
Resource::query() will forward the request to Repository::query() of each registered repo.
Public Member Functions | |
| virtual | ~Repository () |
| Will automatically deregister this repository on deletion. | |
| virtual std::string | name () const =0 |
| Returns the repository name to allow for namespacing in case multiple repositories are registered. | |
| virtual bool | contains (const std::string_view &resourceName) const =0 |
| Checks whether this repository contains a resource of the given name. | |
| virtual std::optional< ByteBuffer > | query (const std::string_view &resourceName) const =0 |
| Returns the requested resource name. | |
|
pure virtual |
Returns the repository name to allow for namespacing in case multiple repositories are registered.
Implemented in FilesystemRepository.
|
pure virtual |
Checks whether this repository contains a resource of the given name.
Implemented in FilesystemRepository.
|
pure virtual |
Returns the requested resource name.
Implemented in FilesystemRepository.