Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIAdpPLMErrorIterator
Iterator to handle the set of PLM errors logged by a PLM Error Reviewer.
Role: This interface scans sequentially the set of errors logged by a given PLM ErrorReviewer ( ) :
When the Error Reviewer is passed to a PLMServer access operation, it is filled with all PLM errors eventually raised by this operation.
These PLM Errors are added to the set of PLM errors that may already be stored in the Error Reviewer.
The set of errors is only reset when deleting the Reviewer.
The Iterator is to be created first using
:
The returned iteration pointer enables to scan the current set of Errors stored by the PLMError Reviewer.
When the Error Reviewer is used to perform another PLMServer access operation, another Iterator is to be
created to scan the updated set of PLM Errors.
example:
// Use a PLM Error Reviewer calling service(s) that may fill it with PLMErrors HRC = CATAdpOpenSaveServices::Save(NULL, piErrorReviewer);
if (FAILED(HR)) { CATIAdpPLMErrorIterator * piErrorIterator = NULL; CATIAdpPLMError* piPLMError = NULL; HR = piErrorReviewer->GetPLMErrorIterator(piErrorIterator); if (SUCCEEDED(HR) && piErrorIterator) { while (SUCCEEDED(piErrorIterator->Next(piPLMError)) && piPLMError) {
... piPLMError->Release(); piPLMError = NULL; } } }
public virtual Next( | opPLMError) |
public virtual Rewind( | ) |
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.