UrlFileCacheInterface offers helper functions to allow to access to files with unsupported URLSCHEMEs. E.g. preset:// wont work with openexr because this lib needs a valid utf8 character path and InputStreams cannot be used to virtualize the read. In that case you would write:
maxon::UrlFileCacheEntry fileCacheEntry;
{
url = fileCacheEntry.GetCacheUrl();
}
return exr_load(
buffer.GetFirst(), &wbm);
else
const char ** buffer
Definition: abstract.h:327
const char const char * name
Definition: abstract.h:195
maxon::Url MaxonConvert(const Filename &fn, MAXONCONVERTMODE convertMode)
@ READ
Check for file read operation.
static MAXON_METHOD Bool IsAccessible(const maxon::Url &url)
static MAXON_METHOD Result< UrlFileCacheEntry > FindOrCreateUrl(const Url &sourceUrl, const TimeValue &maxCacheTime=Seconds(1.0), URLFILECACHEFLAGS flags=URLFILECACHEFLAGS::NONE)
IMAGERESULT
Definition: ge_prepass.h:3925
#define ifnoerr(...)
The opposite of iferr.
Definition: errorbase.h:393
#define iferr_return
Definition: resultbase.h:1524