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

Developer

API Reference

ITYPEDVALUEMODEL_SETVALUE()

Brew Release
Brew MP 1.0.2
See Also
Model Events PFNTADAPTSET ITypedValueModel_GetValue() ITypedValueModel_AdaptGet() ITypedValueModel_AdaptSet()
Description
This function changes the value of the data stored in a model, freeing (if necessary) any memory required to store the previously value.
Params
pif
[]:
Pointer to the ITypedValueModel interface object.
type
[]:
Specifies the type of the data
pValue
[]:
Pointer to the data
nLen
[]:
Length of the data.
pfn
[]:
Pointer to the callback function that the model will call to when this value is removed from the model at a later time. If no special function is required to free the model data, pass NULL.
pFreeCxt
[]:
Context pointer provided as the first parameter to pfn.
Interface
Prototype
  •    AEEResult ITypedValueModel_SetValue(ITypedValueModel *pif, AEEUID type, void *pValue, int nLen, PFNTVALUEFREE pfn, void *pFreeCxt);
    
Return
  •    AEE_SUCCESS             : On success.
       Error code              : Otherwise.
    
Side Effect
  • Changing the value model by calling ITypedValueModel_SetValue() will cause the model to emit an EVT_MDL_VALUE ModelEvent to any object that has registered as a listener with the model.
Comments
None