![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Core/Resource/FilesystemRepository.h>
Repository for loading resources from the local filesystem. More...
Inheritance diagram for FilesystemRepository:Repository for loading resources from the local filesystem.
Maintains a set of search paths, in which it looks for matching files.
Public Member Functions | |
| FilesystemRepository (const std::string_view &repositoryName, const std::vector< Filesystem::Directory > &searchPaths={}) | |
| Create a new FilesystemRepository with the given name and set of search paths. | |
| void | addSearchPath (const Filesystem::Directory &path) |
| Add the given string to the list of search directories. | |
| std::string | name () const override |
| Returns the repository name to allow for namespacing in case multiple repositories are registered. | |
| bool | contains (const std::string_view &resourceName) const override |
| Checks whether this repository contains a resource of the given name. | |
| std::optional< ByteBuffer > | query (const std::string_view &resourceName) const override |
| Returns the requested resource name. | |
Public Member Functions inherited from Repository | |
| virtual | ~Repository () |
| Will automatically deregister this repository on deletion. | |
|
overridevirtual |
Returns the repository name to allow for namespacing in case multiple repositories are registered.
Implements Repository.
|
overridevirtual |
Checks whether this repository contains a resource of the given name.
Implements Repository.
|
overridevirtual |
Returns the requested resource name.
Implements Repository.