3#include <NDEVR/SoftwareService.h>
4#include <NDEVR/Buffer.h>
5#include <NDEVR/String.h>
The equivelent of std::vector but with a bit more control.
Resolves resource identifiers to absolute file paths, supporting online, packed, and local sources.
static bool ResolveNDEVRResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr, bool ensure_unzipped=false)
Attempts to resolved an NDEVR resource.
static bool ResolveResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr, bool ensure_unzipped=false)
Attempts to resolved a resource.
virtual bool resolveNDEVRResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr, bool ensure_unzipped=false)=0
Subclass implementation for resolving an NDEVR shared resource.
static Buffer< ResourceResolver * > s_resolvers
Global list of registered ResourceResolver instances used to attempt resource resolution.
virtual bool resolveResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr, bool ensure_unzipped=false)=0
Subclass implementation for resolving a resource.
static void AddResolver(ResourceResolver *resolver)
Registers a new ResourceResolver instance to the global list of resolvers.
static bool CheckAndUnzipResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr)
Same as ResolveResource(xx,xx, true).
static bool CheckAndUnzipNDEVRResource(const StringView &resource, const std::function< void(bool, const StringView &)> &on_finished=nullptr)
Same as ResolveNDEVRResource(xx, xx, true).
Software Service Managers take a Software service to modify the behavior of the software.
Base interface for services that extend or modify software behavior through modules.
The core String View class for the NDEVR API.
The primary namespace for the NDEVR SDK.