3#include <NDEVR/Buffer.h>
4#include <NDEVR/String.h>
39 static bool ResolveResource(
const String& resource,
const std::function<
void(
bool,
const String&)>& on_finished =
nullptr,
bool ensure_unzipped =
false);
55 static bool CheckAndUnzipResource(
const String& resource,
const std::function<
void(
bool,
const String&)>& on_finished =
nullptr);
60 virtual bool resolveResource(
const String& resource,
const std::function<
void(
bool,
const String&)>& on_finished =
nullptr,
bool ensure_unzipped =
false) = 0;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
This class resolves resources, or data identified by a string. The data absolute path is then passed ...
Definition ResourceResolver.h:19
virtual bool resolveResource(const String &resource, const std::function< void(bool, const String &)> &on_finished=nullptr, bool ensure_unzipped=false)=0
static Buffer< ResourceResolver * > s_resolvers
Definition ResourceResolver.h:62