3#include <NDEVR/SoftwareService.h>
4#include <NDEVR/Buffer.h>
5#include <NDEVR/String.h>
38 static bool ResolveResource(
const String& resource,
const std::function<
void(
bool,
const String&)>& on_finished =
nullptr,
bool ensure_unzipped =
false);
54 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:56
This class resolves resources data identified by a string. The data absolute path is then passed on t...
Definition ResourceResolver.h:20
static Buffer< ResourceResolver * > s_resolvers
Definition ResourceResolver.h:56
static void AddResolver(ResourceResolver *resolver)
static bool CheckAndUnzipResource(const String &resource, const std::function< void(bool, const String &)> &on_finished=nullptr)
Same as ResolveResource(xx,xx, true)
virtual bool resolveResource(const String &resource, const std::function< void(bool, const String &)> &on_finished=nullptr, bool ensure_unzipped=false)=0
static bool ResolveResource(const String &resource, const std::function< void(bool, const String &)> &on_finished=nullptr, bool ensure_unzipped=false)
Attempts to resolved a resource. Resource could be in an online or offline database,...
Software Services provide an interface for adding to or changing the software behavior via functional...
Definition SoftwareService.h:9
Software Service Managers take a Software service to modify the behavior of the software.
Definition SoftwareService.h:15
The core String class for the NDEVR API.
Definition String.h:69