A Component is an abastract class with two subclasses: Segment and Transition. The GetLength and SetLength only aplies to time-varying media and it is an optional property. Non time-varying objects DO NOT support this property.
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
AAFRESULT_NOT_INITIALIZED
Objects that implement IAAFComponent2 also implement the following interfaces:
Definition at line 35737 of file AAF.idl.
Public Member Functions | |
| HRESULT | SetLength ([in] aafLength_constref length) |
| Sets the length property value on this component object. | |
| HRESULT | GetLength ([retval][out] aafLength_t *pLength) |
| Gets the duration in edit units of this component. | |
| HRESULT | SetDataDef ([in] IAAFDataDef *pDataDef) |
| sets the data definition property AUID on this component. | |
| HRESULT | GetDataDef ([out, retval] IAAFDataDef **ppDatadef) |
| returns data definition object. | |
| HRESULT | AppendKLVData ([in] IAAFKLVData *pData) |
| Appends a pre-existing KLV Data object to the specified component. | |
| HRESULT | CountKLVData ([out] aafUInt32 *pNumData) |
| return total number of KLV data objects attached to this component. | |
| HRESULT | GetKLVData ([out] IEnumAAFKLVData **ppEnum) |
| return the enumeration for all KLV data objects on this component. | |
| HRESULT | RemoveKLVData ([in] IAAFKLVData *pData) |
| /// Removes the given KLV data object from this component. | |
| HRESULT | AppendComment ([in] aafCharacter_constptr pName,[in] aafCharacter_constptr pValue) |
| Append and attribute name/value pair to the attribute list. | |
| HRESULT | CountComments ([out] aafUInt32 *pNumComments) |
| Return the number of comments contained by this component. | |
| HRESULT | GetComments ([out] IEnumAAFTaggedValues **ppEnum) |
| Return a comment enumerator for this component. | |
| HRESULT | RemoveComment ([in] IAAFTaggedValue *pComment) |
| Remove a comment (tagged value). | |
| HRESULT | AppendAttribute ([in] aafCharacter_constptr pName,[in] aafCharacter_constptr pValue) |
| Append and attribute name/value pair to the attribute list. | |
| HRESULT | CountAttributes ([out] aafUInt32 *pNumAttributes) |
| Return the number of attributes contained by this component. | |
| HRESULT | GetAttributes ([out] IEnumAAFTaggedValues **ppEnum) |
| Return an attribute enumerator for this component. | |
| HRESULT | RemoveAttribute ([in] IAAFTaggedValue *pAttribute) |
| Remove an attribute (tagged value). | |
|
||||||||||||
|
Append and attribute name/value pair to the attribute list.
|
|
||||||||||||
|
Append and attribute name/value pair to the attribute list.
|
|
|
Appends a pre-existing KLV Data object to the specified component. Succeeds if all of the following are true:
If this method fails no state will be changed. 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
|
|
|
Return the number of attributes contained by this component.
|
|
|
Return the number of comments contained by this component.
|
|
|
return total number of KLV data objects attached to this component. Succeeds if all of the following are true:
If this method fails nothing will be written to *pNumComments. 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
|
|
|
Return an attribute enumerator for this component.
|
|
|
Return a comment enumerator for this component.
|
|
|
returns data definition object. Succeeds if all of the following are true:
If this method fails nothing will be written to *ppDatadef. 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
|
|
|
return the enumeration for all KLV data objects on this component. The returned enumerator is AddRef()ed before it is returned. The enumerator is implemented as a EnumAAFKLVData. Succeeds if all of the following are true:
If this method fails nothing will be written to *ppEnum. 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
|
|
|
Gets the duration in edit units of this component. Succeeds if all of the following are true:
This method deals with an optional property, which will only be present for time-varying media. If this method fails nothing will be written to *pLength. 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
AAFRESULT_BAD_PROP
|
|
|
Remove an attribute (tagged value).
|
|
|
Remove a comment (tagged value).
|
|
|
/// Removes the given KLV data object from this component. Succeeds if all of the following are true:
If this method fails no state will be changed. 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
AAFRESULT_OBJECT_NOT_FOUND
|
|
|
sets the data definition property AUID on this component. If this method fails the Data Definition property will not be changed. 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
|
|
|
Sets the length property value on this component object. Succeeds if all of the following are true:
This method deals with an optional property, which will only be present for time-varying media. If this method fails the length property will not be changed. 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_BAD_PROP
|
1.4.1