Developer

API Reference

ITRIGMLELEMENT_SetAttribute()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
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.
Parameters
  • 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().
Comment
None
  • Follow