ConfigIOProxy is a proxy class to allow the calling program to supply the config and any associated LUT files directly, without relying on the standard file system.
The OCIOZ archive feature is implemented using this mechanism.
Definition at line 3687 of file OpenColorIO.h.
virtual std::string OCIO_NAMESPACE::ConfigIOProxy::getFastLutFileHash |
( |
const char * |
filepath | ) |
const |
|
pure virtual |
Provide a fast unique ID for a LUT file.
This is intended to supply the string that will be used in OCIO's FileCacheMap. This should be highly performant and typically should not require extensive computation such as calculating the md5 hash of the file, unless it is pre-computed.
If the "file" does not exist, in other words, if the proxy is unable to supply the requested file contents, the function must return an empty string.
- Parameters
-
filepath | Fully resolve the path to the "file." |
The file path is based on the Config's current working directory and is the same absolute path that would have been provided to the file system.
- Returns
- The file hash string.