View Issue Details

IDProjectCategoryView StatusLast Update
0012995Open CASCADEOCCT:Data Exchangepublic2007-01-12 10:46
ReporterabvAssigned Toskl 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.1.1 
Summary0012995: Avoid using cout in STEP and IGES translators
DescriptionCurrently STEP and IGES translators sometimes put messages to cout. This should
be avoided (at least in Release mode): the message should be either attached to
the entity in the TransferProcess, or put to message printer (when available,
and when appropriate trace level is set), or should not be issued at all.

The currently known places are:

ShapeProcess_Context.cxx, line 73: to be commented out
ShapeProcess_OperLibrary.cxx, line 329, 389, 421, 636: to be put in #ifdef DEB
ShapeProcess.cxx, line 113: to be put to context->Printer()
The ShapeProcess package in general: useful warning messages currently put to
cout should be put to context->Printer() instead, and if possible, be defined
via resource file

STEPControl_ActorRead.cxx, line 507: warning to be put to TransferProceess
STEPControl_Reader.cxx, line 117: to be investigated
StepData_StepDumper.cxx, line 142: S should be used instead of cout
STEPAP209_Construct.cxx, lines 804 and 809: to be checked (probably not needed)

IGESCAFControl_Reader.cxx, line 121: to be put to TP, if possible

In fact, much more places where cout is used can be found by grep, most typical
is in catch{} block of exception...
TagsNo tags attached.
Test case number

Attached Files

  • patchOCC12995.tar (910,848 bytes)

Activities

2006-07-24 12:58

 

patchOCC12995.tar (910,848 bytes)

Issue History

Date Modified Username Field Change
2006-07-24 15:38 bugmaster Assigned To bugmaster => skl
2006-07-24 15:38 bugmaster Status new => assigned
2006-07-27 11:09 bugmaster CC => mkv
2006-08-07 14:36 bugmaster Status assigned => verified
2007-01-12 12:46 bugmaster Status verified => closed
2007-01-12 12:46 bugmaster Resolution @0@ => fixed
2011-08-02 11:12 bugmaster Category OCCT:DTE => OCCT:Data Exchange