MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / MultiFileLoader

Class MultiFileLoader

src/Abyss/FileSystem/FileLoader.h:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22};
23
24class MultiFileLoader final : public FileLoader {
25 std::vector<std::unique_ptr<Provider>> _providers;
26 absl::flat_hash_map<std::string, int /* index in _providers */> _cacheWhere;
27 std::mutex _mutex;
28
29 public:
30 ~MultiFileLoader() override = default;
31 [[nodiscard]] InputStream loadFile(std::string_view path) override;
32 [[nodiscard]] bool fileExists(std::string_view path) override;
33 void addProvider(std::unique_ptr<Provider> provider);
34};
35
36} // namespace Abyss::FileSystem

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected