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:
@@ -109,9 +109,6 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent&
|
||||
}
|
||||
aByteArray->ChangeArray(hArr);
|
||||
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
|
||||
if(XmlMDataStd::DocumentVersion() > 2) {
|
||||
@@ -128,7 +125,7 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent&
|
||||
else
|
||||
aDelta = (Standard_Boolean)aDeltaValue;
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef XMLMDATASTD_DEB
|
||||
else if(XmlMDataStd::DocumentVersion() == -1)
|
||||
cout << "Current DocVersion field is not initialized. " <<endl;
|
||||
#endif
|
||||
|
@@ -107,9 +107,6 @@ Standard_Boolean XmlMDataStd_ExtStringArrayDriver::Paste
|
||||
XmlObjMgt::GetExtendedString( *aCurElement, aValueStr );
|
||||
aExtStringArray->SetValue( aLastInd, aValueStr );
|
||||
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
|
||||
if(XmlMDataStd::DocumentVersion() > 2) {
|
||||
@@ -126,7 +123,7 @@ Standard_Boolean XmlMDataStd_ExtStringArrayDriver::Paste
|
||||
else
|
||||
aDelta = (Standard_Boolean)aDeltaValue;
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef XMLMDATASTD_DEB
|
||||
else if(XmlMDataStd::DocumentVersion() == -1)
|
||||
cout << "Current DocVersion field is not initialized. " <<endl;
|
||||
#endif
|
||||
|
@@ -99,10 +99,6 @@ Standard_Boolean XmlMDataStd_IntPackedMapDriver::Paste
|
||||
if(aPackedMap->ChangeMap(aHMap))
|
||||
Ok = Standard_True;
|
||||
}
|
||||
//
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
if(Ok) {
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
|
||||
@@ -120,7 +116,7 @@ Standard_Boolean XmlMDataStd_IntPackedMapDriver::Paste
|
||||
else
|
||||
aDelta = (Standard_Boolean)aDeltaValue;
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef XMLMDATASTD_DEB
|
||||
else if(XmlMDataStd::DocumentVersion() == -1)
|
||||
cout << "Current DocVersion field is not initialized. " <<endl;
|
||||
#endif
|
||||
|
@@ -112,9 +112,6 @@ Standard_Boolean XmlMDataStd_IntegerArrayDriver::Paste
|
||||
anIntArray->SetValue(ind, aValue);
|
||||
}
|
||||
}
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
|
||||
if(XmlMDataStd::DocumentVersion() > 2) {
|
||||
@@ -131,7 +128,7 @@ Standard_Boolean XmlMDataStd_IntegerArrayDriver::Paste
|
||||
else
|
||||
aDelta = (Standard_Boolean)aDeltaValue;
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef XMLMDATASTD_DEB
|
||||
else if(XmlMDataStd::DocumentVersion() == -1)
|
||||
cout << "Current DocVersion field is not initialized. " <<endl;
|
||||
#endif
|
||||
|
@@ -489,12 +489,6 @@ Standard_Boolean XmlMDataStd_NamedDataDriver::Paste(const XmlObjMgt_Persistent&
|
||||
TCollection_AsciiString aVal(aValueStr,'?');
|
||||
Standard_Integer aLen = aVal.IntegerValue();
|
||||
|
||||
#ifdef DEB
|
||||
// XmlObjMgt_DOMString aValStr = aCurElement->getAttribute(::Value());
|
||||
// const char* aS = aValStr.GetString();
|
||||
// cout << " Key = " << TCollection_AsciiString(aKey, '?') << " aValue = " << aS << endl;
|
||||
#endif
|
||||
|
||||
TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
|
||||
Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
|
||||
if(aValue.IsNull()) {
|
||||
@@ -519,11 +513,6 @@ Standard_Boolean XmlMDataStd_NamedDataDriver::Paste(const XmlObjMgt_Persistent&
|
||||
}
|
||||
TCollection_AsciiString aVal(aValueStr,'?');
|
||||
Standard_Integer aLen = aVal.IntegerValue();
|
||||
#ifdef DEB
|
||||
// XmlObjMgt_DOMString aValStr = aCurElement->getAttribute(::Value());
|
||||
// const char* aS = aValStr.GetString();
|
||||
// cout << " Key = " << TCollection_AsciiString(aKey, '?') << " aValue = " <<aS<<endl;
|
||||
#endif
|
||||
TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
|
||||
Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
|
||||
if(aValue.IsNull()) {
|
||||
|
@@ -118,9 +118,6 @@ Standard_Boolean XmlMDataStd_RealArrayDriver::Paste
|
||||
aRealArray->SetValue(ind, aValue);
|
||||
}
|
||||
}
|
||||
#ifdef DEB
|
||||
//cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
|
||||
#endif
|
||||
Standard_Boolean aDelta(Standard_False);
|
||||
|
||||
if(XmlMDataStd::DocumentVersion() > 2) {
|
||||
@@ -137,7 +134,7 @@ Standard_Boolean XmlMDataStd_RealArrayDriver::Paste
|
||||
else
|
||||
aDelta = (Standard_Boolean)aDeltaValue;
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef XMLMDATASTD_DEB
|
||||
else if(XmlMDataStd::DocumentVersion() == -1)
|
||||
cout << "Current DocVersion field is not initialized. " <<endl;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user