mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -45,9 +45,6 @@ Standard_Boolean BinMDataStd_ByteArrayDriver::Paste(const BinObjMgt_Persistent&
|
||||
const Handle(TDF_Attribute)& theTarget,
|
||||
BinObjMgt_RRelocationTable& ) const
|
||||
{
|
||||
#ifdef DEB
|
||||
// cout << "ByteArrayDriver::Retrieve: " << TypeName() << endl;
|
||||
#endif
|
||||
Standard_Integer aFirstInd, aLastInd;
|
||||
if (! (theSource >> aFirstInd >> aLastInd))
|
||||
return Standard_False;
|
||||
@@ -64,9 +61,7 @@ Standard_Boolean BinMDataStd_ByteArrayDriver::Paste(const BinObjMgt_Persistent&
|
||||
bytes->SetValue(i, aTargetArray.Value(i));
|
||||
}
|
||||
anAtt->ChangeArray(bytes);
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
if(BinMDataStd::DocumentVersion() > 2) {
|
||||
Standard_Byte aDeltaValue;
|
||||
@@ -87,9 +82,6 @@ void BinMDataStd_ByteArrayDriver::Paste(const Handle(TDF_Attribute)& theSource,
|
||||
BinObjMgt_Persistent& theTarget,
|
||||
BinObjMgt_SRelocationTable& ) const
|
||||
{
|
||||
#ifdef DEB
|
||||
// cout << "ByteArrayDriver::Store: " << TypeName() << endl;
|
||||
#endif
|
||||
Handle(TDataStd_ByteArray) anAtt = Handle(TDataStd_ByteArray)::DownCast(theSource);
|
||||
const Standard_Integer aFirstInd = anAtt->Lower();
|
||||
const Standard_Integer aLastInd = anAtt->Upper();
|
||||
|
@@ -74,16 +74,10 @@ Standard_Boolean BinMDataStd_ExtStringArrayDriver::Paste
|
||||
}
|
||||
|
||||
if(ok) {
|
||||
//#ifdef DEB
|
||||
// cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
|
||||
//#endif
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
if(BinMDataStd::DocumentVersion() > 2) {
|
||||
Standard_Byte aDeltaValue;
|
||||
if (! (theSource >> aDeltaValue)) {
|
||||
//#ifdef DEB
|
||||
// cout <<"DeltaValue = " << (Standard_Integer)aDeltaValue <<endl;
|
||||
//#endif
|
||||
return Standard_False;
|
||||
}
|
||||
else
|
||||
|
@@ -81,9 +81,7 @@ Standard_Boolean BinMDataStd_IntPackedMapDriver::Paste
|
||||
}
|
||||
aTagAtt->ChangeMap(aHMap);
|
||||
}
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
if(BinMDataStd::DocumentVersion() > 2) {
|
||||
Standard_Byte aDeltaValue;
|
||||
|
@@ -63,9 +63,6 @@ Standard_Boolean BinMDataStd_IntegerArrayDriver::Paste
|
||||
if(!theSource.GetIntArray (&aTargetArray(aFirstInd), aLength))
|
||||
return Standard_False;
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
if(BinMDataStd::DocumentVersion() > 2) {
|
||||
Standard_Byte aDeltaValue;
|
||||
if (! (theSource >> aDeltaValue))
|
||||
@@ -73,7 +70,7 @@ Standard_Boolean BinMDataStd_IntegerArrayDriver::Paste
|
||||
else
|
||||
aDelta = (Standard_Boolean)aDeltaValue;
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef BINMDATASTD_DEB
|
||||
else if(BinMDataStd::DocumentVersion() == -1)
|
||||
cout << "Current DocVersion field is not initialized. " <<endl;
|
||||
#endif
|
||||
|
@@ -62,9 +62,7 @@ Standard_Boolean BinMDataStd_RealArrayDriver::Paste
|
||||
TColStd_Array1OfReal& aTargetArray = anAtt->Array()->ChangeArray1();
|
||||
if(!theSource.GetRealArray (&aTargetArray(aFirstInd), aLength))
|
||||
return Standard_False;
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
if(BinMDataStd::DocumentVersion() > 2) {
|
||||
Standard_Byte aDeltaValue;
|
||||
|
Reference in New Issue
Block a user