API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ITRIGMLELEMENT_GETATTRIBUTENORESOLVE()

Brew Release
Brew MP 1.0.2
See Also
ITRIGMLELEMENT_SetAttribute() ITRIGMLELEMENT_GetAttributeNoResolve()
Description
Returns the value of the given attribute on the given element without resolving it.
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.
Params
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.
Interface
  • ITRIGMLELEMENT
Prototype
  •    int ITRIGMLELEMENT_GetAttributeNoResolve(ITrigmlElement* po, AEECLSID classId, uint16 id, const TrigmlValue ** ppValue);
    
Return
  •    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.
    
Side Effect
  • None
Comments
None