Hide menu
cadex::Base_WriterStatistics::ErrorIterator Class Reference

Provides information about conversion errors that occured during export process. More...

Public Member Functions

 ErrorIterator (const Base_WriterStatistics &theStatistics)
 Constructor. More...
 
bool HasNext () const
 Returns if there are errors left to iterate through.
 
const Base_ExportErrorNext ()
 Returns the next export error.
 

Detailed Description

Provides information about conversion errors that occured during export process.

Implements iterator interface. Each element returned by this iterator is an instance of cadex::Base_ExportError class, which provides access to the error message and its context.

Currently the functionality of collecting export errors is implemented only for ACIS, IGES, JT, Parasolid, STEP and Rhino.

The information about export errors can be retrieved after Base_Writer::Transfer has completed.

Note
This functionality is currently in the preview state. Source and binary compatibility may be broken. To use it, please define __CADEX_PREVIEW_WRITER_STATISTICS macro to be 1.

Constructor & Destructor Documentation

◆ ErrorIterator()

cadex::Base_WriterStatistics::ErrorIterator::ErrorIterator ( const Base_WriterStatistics theStatistics)

Constructor.

Use the Base_WriterStatistics instance extracted from ACIS_Writer, IGES_Writer, JT_Writer, Para_Writer, STEP_Writer or Rhino_Writer.