mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -83,7 +83,7 @@ Handle(Resource_Manager) ShapeProcess_Context::LoadResourceManager (const Standa
|
||||
}
|
||||
}
|
||||
if ( sRC.IsNull() ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: ShapeProcess_Context: Reload Resource_Manager: "
|
||||
<< name.ToCString() << " -> " << file << endl;
|
||||
#endif
|
||||
@@ -166,7 +166,7 @@ Standard_Boolean ShapeProcess_Context::GetString (const Standard_CString param,
|
||||
if ( myRC.IsNull() ) return Standard_False;
|
||||
Handle(TCollection_HAsciiString) pname = MakeName ( myScope, param );
|
||||
if ( ! myRC->Find ( pname->ToCString() ) ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << pname->ToCString() << " is not defined" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -200,7 +200,7 @@ Standard_Boolean ShapeProcess_Context::GetReal (const Standard_CString param,
|
||||
ref.LeftAdjust();
|
||||
ref.RightAdjust();
|
||||
if ( ! myRC->Find ( ref.ToCString() ) ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -211,7 +211,7 @@ Standard_Boolean ShapeProcess_Context::GetReal (const Standard_CString param,
|
||||
return Standard_True;
|
||||
}
|
||||
}
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Real nor reference to Real";
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -242,7 +242,7 @@ Standard_Boolean ShapeProcess_Context::GetInteger (const Standard_CString param,
|
||||
ref.LeftAdjust();
|
||||
ref.RightAdjust();
|
||||
if ( ! myRC->Find ( ref.ToCString() ) ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -253,7 +253,7 @@ Standard_Boolean ShapeProcess_Context::GetInteger (const Standard_CString param,
|
||||
return Standard_True;
|
||||
}
|
||||
}
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Integer nor reference to Integer";
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -274,7 +274,7 @@ Standard_Boolean ShapeProcess_Context::GetBoolean (const Standard_CString param,
|
||||
return Standard_True;
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
@@ -332,7 +332,7 @@ Standard_CString ShapeProcess_Context::StringVal (const Standard_CString param,
|
||||
return myRC->Value ( MakeName ( myScope, param )->ToCString() );
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user