This interface is used to enumerate over the AAFParameters referenced from in an AAFOperationDefinition or AAFParameter, and contained within the AAFDictionary. More...
Public Member Functions | |
HRESULT | NextOne ([out, retval] IAAFParameter **ppParameter) |
Enumerates to the next element in the enumerators list. | |
HRESULT | Next ([in] aafUInt32 count,[out, size_is(count), length_is(*pFetched)] IAAFParameter **ppParameters,[out, ref] aafUInt32 *pFetched) |
Enumerates the next count elements (AAFParameter pointers) in the enumerator's list, returning them in the given array along with the actual number of enumerated elements in pNumFetched. | |
HRESULT | Skip ([in] aafUInt32 count) |
Instructs the enumerator to skip the next count elements in the enumeration so that the next call to Next will not return those elements. | |
HRESULT | Reset () |
Instructs the enumerator to position itself at the beginning of the list of elements. | |
HRESULT | Clone ([out, retval] IEnumAAFParameters **ppEnum) |
Creates another EnumAAFParameters enumerator with the same state as the current enumerator to iterate over the same list. |
This interface is used to enumerate over the AAFParameters referenced from in an AAFOperationDefinition or AAFParameter, and contained within the AAFDictionary.
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
HRESULT IEnumAAFParameters::Clone | ( | [out, retval] IEnumAAFParameters ** | ppEnum | ) |
Creates another EnumAAFParameters enumerator with the same state as the current enumerator to iterate over the same list.
This method makes it possible to record a point in the enumeration sequence in order to return to that point at a later time.
Note: The caller must release this new enumerator separately from the first enumerator.
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_NULL_PARAM
ppEnum | [out,retval] new enumeration |
HRESULT IEnumAAFParameters::Next | ( | [in] aafUInt32 | count, |
[out, size_is(count), length_is(*pFetched)] IAAFParameter ** | ppParameters, | ||
[out, ref] aafUInt32 * | pFetched | ||
) |
Enumerates the next count elements (AAFParameter pointers) in the enumerator's list, returning them in the given array along with the actual number of enumerated elements in pNumFetched.
The caller is responsible for properly releasing the returned pointers.
Succeeds if all of the following are true:
If this method fails nothing is written to *ppComponents or pNumFetched.
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
count | [in] number of parameter objects requested |
ppParameters | [out, size_is(count), length_is(*pFetched)] array to receive parameter objects |
pFetched | [out,ref] number of actual Parameters fetched into ppParameters array |
HRESULT IEnumAAFParameters::NextOne | ( | [out, retval] IAAFParameter ** | ppParameter | ) |
Enumerates to the next element in the enumerators list.
The caller is responsible for properly releasing the returned pointer when it is no longer needed.
Succeeds if all of the following are true:
If this method fails nothing is written to *ppParameter.
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_NO_MORE_OBJECTS
ppParameter | [out,retval] The Next Parameter |
HRESULT IEnumAAFParameters::Reset | ( | ) |
Instructs the enumerator to position itself at the beginning of the list of elements.
Always succeeds.
This method will return the following code:
AAFRESULT_SUCCESS
There is no guarantee that the same set of elements will be enumerated on each pass through the list, nor will the elements necessarily be enumerated in the same order. The exact behavior depends on the collection being enumerated.
HRESULT IEnumAAFParameters::Skip | ( | [in] aafUInt32 | count | ) |
Instructs the enumerator to skip the next count elements in the enumeration so that the next call to Next will not return those elements.
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_NO_MORE_OBJECTS
count | [in] Number of elements to skip |