The IAAFLocator interface is implemented by objects that provide information to help find a file that contains the essence. More...
Public Member Functions | |
HRESULT | SetPath ([in, string] aafCharacter_constptr pPath) |
Sets the Path string property. | |
HRESULT | GetPath ([out, string, size_is(bufSize)] aafCharacter *pPath,[in] aafUInt32 bufSize) |
Gets the Path string property. | |
HRESULT | GetPathBufLen ([out] aafUInt32 *pBufSize) |
Returns size of buffer (in bytes) required for GetPath(). |
The IAAFLocator interface is implemented by objects that provide information to help find a file that contains the essence.
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
HRESULT IAAFLocator::GetPath | ( | [out, string, size_is(bufSize)] aafCharacter * | pPath, |
[in] aafUInt32 | bufSize | ||
) |
Gets the Path string property.
Writes the Path property, with a trailing null character, into the pPath buffer. The buffer is allocated by the caller. The size of the buffer is given by bufSize. If the Path property has not yet been set, a zero-length string will be written (that is, only the trailing null character).
Caller may call GetPathBufLen() to determine the required buffer size.
If this method fails nothing will be written to pPath.
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
AAFRESULT_SMALL_BUF
pPath | [out, string, size_is(bufSize)] buffer into which Path is to be written |
bufSize | [in] size of *pPath buffer in bytes |
HRESULT IAAFLocator::GetPathBufLen | ( | [out] aafUInt32 * | pBufSize | ) |
Returns size of buffer (in bytes) required for GetPath().
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
pBufSize | [out] size of required buffer, in bytes |
HRESULT IAAFLocator::SetPath | ( | [in, string] aafCharacter_constptr | pPath | ) |
Sets the Path string property.
Set the Path property to the value specified in pPath. A copy is made of the data so the caller retains ownership of the *pPath buffer and is responsible for de-allocating it. There is no pre-set limit to the length of the name, other than available system memory or disk space.
Succeeds if all of the following are true:
If this method fails the Path 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
pPath | [in, string] buffer from which Path is to be read |