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

Developer

API Reference

ITRIGMLELEMENT_SETATTRIBUTE()

Brew Release
Brew MP 1.0.2
See Also
ITRIGMLELEMENT_GetAttribute() ITRIGMLELEMENT_GetAttributeNoResolve()
Description
Sets the value of the given attribute on the given element.
Params
po
[]:
The element on which to set the attribute.
classId
[]:
The class ID of the attribute to set. This should be a KTrigml*ExtensionClassId constant from an extension metadata header.
id
[]:
The attribute ID of the attribute to set. This should be a KTrigml*Attr* constant from an extension metadata header.
pValue
[]:
A pointer to the new value of the attribute. The memory pointed to is owned by the caller. Pass NULL to remove an existing attribute from the element.
Interface
  • ITRIGMLELEMENT
Prototype
  •    int ITRIGMLELEMENT_SetAttribute(ITrigmlElement* po, AEECLSID classId, uint16 id, const TrigmlValue* pValue);
    
Return
  •    SUCCESS if the value of the attribute was successfully assigned.
    
Side Effect
  • All loaded extensions receive a call to ITRIGMLEXTENSION_AttributeModified().
Comments
None