This interface is used to define Integer types used in AAF persistent objects. More...
Public Member Functions | |
HRESULT | CreateValueFromActualValue ([in] IAAFPropertyValue *pActualValue,[out] IAAFPropertyValue **ppIndirectPropertyValue) |
Creates an indirect property value which contains the actual type. | |
HRESULT | CreateValueFromActualData ([in] IAAFTypeDef *pActualType,[in, size_is(initDataSize)] aafMemPtr_t pInitData,[in] aafUInt32 initDataSize,[out] IAAFPropertyValue **ppIndirectPropertyValue) |
Creates an indirect property value which contains data of the actual type. | |
HRESULT | GetActualValue ([in] IAAFPropertyValue *pIndirectPropertyValue,[out] IAAFPropertyValue **ppActualPropertyValue) |
Gets a property value corresponding to the actual data. | |
HRESULT | GetActualSize ([in] IAAFPropertyValue *pIndirectPropertyValue,[out] aafUInt32 *pActualSize) |
) | |
HRESULT | GetActualType ([in] IAAFPropertyValue *pIndirectPropertyValue,[out] IAAFTypeDef **pActualType) |
Return the type definition of the actual data within the indirect property value. | |
HRESULT | GetActualData ([in] IAAFPropertyValue *pPropVal,[out, size_is(dataSize)] aafMemPtr_t pData,[in] aafUInt32 dataSize) |
Copies all the actual data contained in the given indirect property value, interpreted as the actual type for this indirect property value, into the buffer pointed to by pData. |
This interface is used to define Integer types used in AAF persistent objects.
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 IAAFTypeDefIndirect also implement the following interfaces:
HRESULT IAAFTypeDefIndirect::CreateValueFromActualData | ( | [in] IAAFTypeDef * | pActualType, |
[in, size_is(initDataSize)] aafMemPtr_t | pInitData, | ||
[in] aafUInt32 | initDataSize, | ||
[out] IAAFPropertyValue ** | ppIndirectPropertyValue | ||
) |
Creates an indirect property value which contains data of the actual type.
Returns the newly-created property value in ppIndirectPropertyValue.
Succeeds if all of the following are true:
If this method fails nothing will be written to *ppIndirectPropertyValue.
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_ILLEGAL_VALUE
AAFRESULT_NOT_REGISTERED
pActualType | [in] the actual type of the data |
pInitData | [in, size_is(initDataSize)] pointer to buffer containing data to use |
initDataSize | [in] size of data in pInitData |
ppIndirectPropertyValue | [out] newly created property value |
HRESULT IAAFTypeDefIndirect::CreateValueFromActualValue | ( | [in] IAAFPropertyValue * | pActualValue, |
[out] IAAFPropertyValue ** | ppIndirectPropertyValue | ||
) |
Creates an indirect property value which contains the actual type.
Returns the newly-created property value in ppIndirectPropertyValue.
Succeeds if all of the following are true:
If this method fails nothing will be written to *ppIndirectPropertyValue.
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_ILLEGAL_VALUE
AAFRESULT_NOT_REGISTERED
pActualValue | [in] pointer to actual value |
ppIndirectPropertyValue | [out] newly created property value |
HRESULT IAAFTypeDefIndirect::GetActualData | ( | [in] IAAFPropertyValue * | pPropVal, |
[out, size_is(dataSize)] aafMemPtr_t | pData, | ||
[in] aafUInt32 | dataSize | ||
) |
Copies all the actual data contained in the given indirect property value, interpreted as the actual type for this indirect property value, into the buffer pointed to by pData.
Succeeds if all of the following are true:
If this method fails nothing will be written to *ppPropVal.
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_ILLEGAL_VALUE
AAFRESULT_TYPE_NOT_FOUND
AAFRESULT_NOT_REGISTERED
pPropVal | [in] indirect property value to read |
pData | [out, size_is(dataSize)] buffer into which actual data should be written |
dataSize | [in] size of pData buffer in bytes |
HRESULT IAAFTypeDefIndirect::GetActualSize | ( | [in] IAAFPropertyValue * | pIndirectPropertyValue, |
[out] aafUInt32 * | pActualSize | ||
) |
)
Return the size of the actual data withing the indirect property value.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pActualSize.
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_ILLEGAL_VALUE
AAFRESULT_TYPE_NOT_FOUND
AAFRESULT_NOT_REGISTERED
pIndirectPropertyValue | [in] indirect property value to read |
pActualSize | [out] actual data size |
HRESULT IAAFTypeDefIndirect::GetActualType | ( | [in] IAAFPropertyValue * | pIndirectPropertyValue, |
[out] IAAFTypeDef ** | pActualType | ||
) |
Return the type definition of the actual data within the indirect property value.
Succeeds if all of the following are true:
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_ILLEGAL_VALUE
AAFRESULT_TYPE_NOT_FOUND
AAFRESULT_NOT_REGISTERED
pIndirectPropertyValue | [in] indirect property value to read |
pActualType | [out] the type definition of the actual data |
HRESULT IAAFTypeDefIndirect::GetActualValue | ( | [in] IAAFPropertyValue * | pIndirectPropertyValue, |
[out] IAAFPropertyValue ** | ppActualPropertyValue | ||
) |
Gets a property value corresponding to the actual data.
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_ILLEGAL_VALUE
AAFRESULT_NOT_REGISTERED
pIndirectPropertyValue | [in] indirect property value to read |
ppActualPropertyValue | [out] value that is read |