1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025266: Debug statements in the source are getting flushed on to the console

Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB
This commit is contained in:
dbv
2014-10-08 19:00:20 +04:00
committed by abv
parent 7aa1b65c2a
commit 63c629aa3a
370 changed files with 1634 additions and 1639 deletions

View File

@@ -237,25 +237,25 @@ Standard_Boolean StepToTopoDS_GeometricTool::UpdateParam3d
if (theCurve->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) && !theCurve->IsClosed()) {
if (w1 < cf) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Update Edge First Parameter to Curve First Parameter" << endl;
#endif
w1 = cf;
}
else if (w1 > cl) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
#endif
w1 = cl;
}
if (w2 < cf) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
#endif
w2 = cf;
}
else if (w2 > cl) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
#endif
w2 = cl;
@@ -284,7 +284,7 @@ Standard_Boolean StepToTopoDS_GeometricTool::UpdateParam3d
if ( theCurve->Value(w1).Distance(theCurve->Value(cf)) < preci ) w1 = cf;
if ( theCurve->Value(w2).Distance(theCurve->Value(cl)) < preci ) w2 = cl;
if ( w1 > w2 ) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
#endif
Standard_Real tmp = w1;
@@ -312,7 +312,7 @@ Standard_Boolean StepToTopoDS_GeometricTool::UpdateParam3d
// illegal sur une courbe fermee non periodique
// on inverse quand meme les parametres !!!!!!
else {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
#endif
Standard_Real tmp = w1;
@@ -322,7 +322,7 @@ Standard_Boolean StepToTopoDS_GeometricTool::UpdateParam3d
}
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
else if ( w1 > w2 ) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Warning: parameter range is bad; curve reversed" << endl;
#endif
w1 = theCurve->ReversedParameter ( w1 );
@@ -336,7 +336,7 @@ Standard_Boolean StepToTopoDS_GeometricTool::UpdateParam3d
}
}
else {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "UpdateParam3d Failed" << endl;
cout << " - Curve Type : " << theCurve->DynamicType() << endl;
cout << " - Param 1 : " << w1 << endl;
@@ -344,7 +344,7 @@ Standard_Boolean StepToTopoDS_GeometricTool::UpdateParam3d
#endif
//abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
if ( w1 > w2 ) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Warning: parameter range is bad; curve reversed" << endl;
#endif
w1 = theCurve->ReversedParameter ( w1 );

View File

@@ -192,7 +192,7 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init (const Handle(StepGe
}
}
catch(Standard_Failure) {
#ifdef DEB
#ifdef STEPTOTOPODS_DEB
cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
Standard_Failure::Caught()->Print(cout); cout << endl;
#endif
@@ -229,7 +229,7 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init (const Handle(StepGe
}
}
catch(Standard_Failure) {
#ifdef DEB
#ifdef STEPTOTOPODS_DEB
cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
Standard_Failure::Caught()->Print(cout); cout << endl;
#endif

View File

@@ -91,7 +91,7 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME,
// (TP,tobind, MakeEdge(myCurve,V1,V2,U1,U2,BRepAPI::Precision()) );
// aTool.Bind (tobind,E); SURTOUT PAS : noter pour debug/erreur
// }
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "------------------------------------" << endl;
cout << "MakeEdge Error : " << ME.Error()<<" - ";
#endif
@@ -120,7 +120,7 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge& ME,
TP->AddFail(orig," Line through identic Points");
break;
}
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Original Type : " << orig->DynamicType() << endl;
cout << "3D Curve Type : " << myCurve->DynamicType() << endl;
cout << "First Parameter : " << U1 << endl;

View File

@@ -149,7 +149,7 @@ static void CheckPCurves (TopoDS_Wire& aWire, const TopoDS_Face& aFace,
if (w1 == w2) {
RemoveSinglePCurve(myEdge,aFace);
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout<<"Removing pcuve w1=w2"<<endl;
#endif
continue;
@@ -420,7 +420,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
Standard_Boolean ThereIsLikeSeam = Standard_False;
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << " Processing Edge :" << j << endl;
#endif
@@ -695,7 +695,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
}
else {
RemoveSinglePCurve(edge, Face);
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout <<"Removing after prj"<<endl;
#endif
}

View File

@@ -223,7 +223,7 @@ void StepToTopoDS_TranslateFace::Init
for (Standard_Integer i = 1; i <= NbBnd; i ++) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << " Processing Wire : " << i << endl;
#endif
FaceBound = FS->BoundsValue(i);
@@ -368,7 +368,7 @@ void StepToTopoDS_TranslateFace::Init
else {
// Type not yet implemented or non sens
TP->AddFail(Loop," Type of loop not yet implemented");
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << Loop->DynamicType() << endl;
#endif
continue;

View File

@@ -82,7 +82,7 @@ void StepToTopoDS_TranslateShell::Init
Message_ProgressSentry PS ( TP->GetProgress(), "Face", 0, NbFc, 1 );
for (Standard_Integer i=1; i<=NbFc && PS.More(); i++, PS.Next()) {
#ifdef DEBUG
#ifdef STEPTOTOPODS_DEB
cout << "Processing Face : " << i << endl;
#endif
StepFace = CFS->CfsFacesValue(i);