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

0025418: Debug output to be limited to OCC development environment

Macros ending on "DEB" are replaced by OCCT_DEBUG across OCCT code; new macros described in documentation.
Macros starting with DEB are changed to start with "OCCT_DEBUG_".
Some code cleaned.
This commit is contained in:
abv
2014-10-28 12:41:04 +03:00
committed by bugmaster
parent a507ffd9d7
commit 0797d9d30a
700 changed files with 3932 additions and 4250 deletions

View File

@@ -1307,7 +1307,7 @@ static Standard_Integer DDataStd_GetUTFtoFile (Draw_Interpretor& di,
#endif
if (!anOS) {
// A problem with the stream
#ifdef DDATASTD_DEB
#ifdef OCCT_DEBUG
cout << "Error: problem with the file stream, rdstate = " <<anOS.rdstate() <<endl;
#endif
}

View File

@@ -52,23 +52,6 @@
#include <DDataStd_DrawPresentation.hxx>
// Unused :
#ifdef BLABLA_DEB
static void Location (Standard_Integer nb, const char** arg, gp_Ax2& Loc) {
if (nb == 9) {
Standard_Real X = Draw::Atof(arg[3]);
Standard_Real Y = Draw::Atof(arg[4]);
Standard_Real Z = Draw::Atof(arg[5]);
Standard_Real DX = Draw::Atof(arg[6]);
Standard_Real DY = Draw::Atof(arg[7]);
Standard_Real DZ = Draw::Atof(arg[8]);
Loc = gp_Ax2 (gp_Pnt(X,Y,Z), gp_Dir(DX,DY,DZ));
}
}
#endif
//=======================================================================
//function : DDataStd_SetPoint
//purpose : SetPoint (DF, entry, [drawpoint])
@@ -162,58 +145,6 @@ static Standard_Integer DDataStd_SetPlane (Draw_Interpretor& di,
}
//=======================================================================
//function : DDataStd_SetMove
//purpose :
//=======================================================================
// static Standard_Integer DDataStd_SetMove (Draw_Interpretor&,
// Standard_Integer nb,
// const char** arg)
// {
// if (nb < 3) return 1;
// TDF_Label L;
// Handle(TDF_Data) DF;
// if (!DDF::GetDF (arg[1], DF)) return 1;
// if (!DDF::FindLabel(DF, arg[2], L)) return 1;
// TopLoc_Location Loc;
// if (nb == 4) {
// TopoDS_Shape S = DBRep::Get(arg[3]);
// if (S.IsNull()) return 1;
// Loc = S.Location();
// }
// else {
// if (nb < 6) return 1;
// gp_Trsf T;
// Standard_Real x = Draw::Atof(arg[3]);
// Standard_Real y = Draw::Atof(arg[4]);
// Standard_Real z = Draw::Atof(arg[5]);
// if (nb == 6) {
// T.SetTranslation(gp_Vec(x,y,z));
// }
// else if (nb < 10)
// return 1;
// else {
// Standard_Real dx = Draw::Atof(arg[6]);
// Standard_Real dy = Draw::Atof(arg[7]);
// Standard_Real dz = Draw::Atof(arg[8]);
// Standard_Real ang = Draw::Atof(arg[9]);
// T.SetRotation(gp_Ax1(gp_Pnt(x,y,z),
// gp_Vec(dx,dy,dz)),
// ang * (M_PI / 180.0));
// }
// Loc = T;
// }
// TDataStd_CoordSys::Move(L,Loc);
// return 0;
// }
//=======================================================================
//function : DDataStd_GetPoint
//purpose : GetPoint (DF, entry, [drawname])

View File

@@ -175,7 +175,7 @@ static Standard_Integer DDataStd_GetName (Draw_Interpretor& di,
// str.Remove(str.Length()); //remove last ":"
// di << str.ToCString();
// }
// #ifndef DEB
// #ifndef OCCT_DEBUG
// return 0 ;
// #endif
// }

View File

@@ -107,7 +107,7 @@ static Standard_Integer DDataStd_AppendNode (Draw_Interpretor& di,
}
child = TDataStd_TreeNode::Set(L,ID);
if (!father->Append(child)) return 1;
#ifdef DEB
#ifdef OCCT_DEBUG
di<<"AppendNode: OK"<<"\n";
#endif
return 0;
@@ -153,7 +153,7 @@ static Standard_Integer DDataStd_PrependNode (Draw_Interpretor& di,
}
child = TDataStd_TreeNode::Set(L,ID);
if (!father->Prepend(child)) return 1;
#ifdef DEB
#ifdef OCCT_DEBUG
di<<"PrependNode: OK"<<"\n";
#endif
return 0;