If the value of the attribute contained a non-constant expression of any kind, the returned TrigmlValue will have type TRIGMLVALUETYPE_COMPILED, and its data pointer will contain opaque binary data. ITRIGMLELEMENT_GetAttributeNoResolve() is therefore only really useful for tracing and debugging; most of the time you will want to call ITRIGMLELEMENT_GetAttribute(), which will return the resolved value of the attribute.
- po:The element for which to get the attribute.
- classId:The class ID of the attribute to get. This should be a KTrigml*ExtensionClassId constant from an extension metadata header.
- id:The attribute ID of the attribute to get. This should be a KTrigml*Attr* constant from an extension metadata header.
- ppValue:A pointer to receive the address of the unresolved value of the attribute. The memory pointed to is owned by the Trigplayer; do not free it.
int ITRIGMLELEMENT_GetAttributeNoResolve(ITrigmlElement* po, AEECLSID classId, uint16 id, const TrigmlValue ** ppValue);
If the attribute exists on the element, the function will return SUCCESS and *ppValue will point to the unresolved value of the attribute. If the attribute does not exist on the element, the function will return SUCCESS and *ppValue will be NULL.