This interface is an extension to the previously definined TypeDefVariableArray interface. More...
Public Member Functions | |
HRESULT | PrependElement ([in] IAAFPropertyValue *pInPropVal,[in] IAAFPropertyValue *pMemberPropVal) |
Prepends an element to the end of the array, setting it to the value given in pMemberPropVal. | |
HRESULT | RemoveElement ([in] IAAFPropertyValue *pInPropVal,[in] aafUInt32 index) |
Remove an element from the Array, given an index. | |
HRESULT | InsertElement ([in] IAAFPropertyValue *pInPropVal,[in] aafUInt32 index,[in] IAAFPropertyValue *pMemberPropVal) |
Inserts the value of the single, indicated element of the fixed array contained in pInPropVal, to the value contained in pMemberPropVal. |
This interface is an extension to the previously definined TypeDefVariableArray interface.
Hence the suffix "Ex" to the name. Additional methods are now included.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
Objects that implement IAAFTypeDefVariableArrayEx also implement the following interfaces:
HRESULT IAAFTypeDefVariableArrayEx::InsertElement | ( | [in] IAAFPropertyValue * | pInPropVal, |
[in] aafUInt32 | index, | ||
[in] IAAFPropertyValue * | pMemberPropVal | ||
) |
Inserts the value of the single, indicated element of the fixed array contained in pInPropVal, to the value contained in pMemberPropVal.
Index is zero-based, and must be less than the value returned by GetCount(). Property value must be of the same type as returned by GetType().
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
AAFRESULT_BADINDEX
pInPropVal | [in] property value corresponding to array |
index | [in] zero-based index into elements in this array type |
pMemberPropVal | [in] value to be inserted into this array |
HRESULT IAAFTypeDefVariableArrayEx::PrependElement | ( | [in] IAAFPropertyValue * | pInPropVal, |
[in] IAAFPropertyValue * | pMemberPropVal | ||
) |
Prepends an element to the end of the array, setting it to the value given in pMemberPropVal.
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pInPropVal | [in] property value corresponding to array to which element is prepended |
pMemberPropVal | [in] value to be prepended to this array |
HRESULT IAAFTypeDefVariableArrayEx::RemoveElement | ( | [in] IAAFPropertyValue * | pInPropVal, |
[in] aafUInt32 | index | ||
) |
Remove an element from the Array, given an index.
Index is zero-based, and must be less than the value returned by GetCount().
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
AAFRESULT_BADINDEX
pInPropVal | [in] property value corresponding to array |
index | [in] zero-based index into elements in this array type |