RixDeepTexture::DeepMetadata Class Reference
#include <RixDeepTexture.h>
Public Member Functions | |
virtual int | Set (char const *token, void const *value)=0 |
virtual int | Count ()=0 |
Return how many metadata fields this list has. | |
virtual int | GetByIndex (int index, char const **token, void const **value)=0 |
virtual int | GetByName (char const *name, char const **token, void const **value)=0 |
Metadata fields may also be retrieved by an unadorned name. | |
Protected Member Functions | |
virtual | ~DeepMetadata () |
Internal only. | |
Detailed Description
This object contains a list of key/value pairs that can be associated with a file or image and will be persisted on disk.
The token is a string specifying the type and name of the field and is given in the standard RenderMan style, e.g., float bbox[6]
. Supported types are: float, int, point, color, vector, normal, hpoint, matrix, and string.
The associated data to write is given by the value pointer. In the case of string data, this should point to char *
pointers that point to the strings themselves (i.e., argv style).
Member Function Documentation
|
pure virtual |
Metadata fields are indexed in no particular order; this function is simply a convenience for enumerating all attached metadata. Returns k_ErrNOMETADATA if the given field doesn't exists. The resulting pointers are valid until either the file is closed or Set() modifies this field. Data behind these pointers must not be changed.
|
pure virtual |
Add or update a metadata field. If the value is null, the metadata field will be removed.
The documentation for this class was generated from the following file: