1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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

@@ -1354,7 +1354,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
aFile.Close();
break;
}
#ifdef DATATYPE_MIGRATION_DEB
#ifdef OCCT_DEBUG
cout << "Storage_Sheme:: Line: = " << aLine <<endl;
#endif
TCollection_AsciiString aKey, aValue;
@@ -1364,7 +1364,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
}
}
}
#ifdef DATATYPE_MIGRATION_DEB
#ifdef OCCT_DEBUG
cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() <<endl;
#endif
}
@@ -1375,7 +1375,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
newName.Clear();
newName = aDMap.Find(oldName);
aMigration = Standard_True;
#ifdef DATATYPE_MIGRATION_DEB
#ifdef OCCT_DEBUG
cout << " newName = " << newName << endl;
#endif
}
@@ -1413,7 +1413,7 @@ static Standard_Boolean result;
#ifdef DATATYPE_MIGRATION
TCollection_AsciiString newName;
if(CheckTypeMigration(typeName, newName)) {
#ifdef DATATYPE_MIGRATION_DEB
#ifdef OCCT_DEBUG
cout << "CheckTypeMigration:OldType = " <<typeName << " Len = "<<typeName.Length()<<endl;
cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<endl;
#endif
@@ -1537,7 +1537,7 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
struct tm *nowstruct;
if (time(&nowbin) == (time_t)-1)
{
#ifdef STORAGE_DEB
#ifdef OCCT_DEBUG
cerr << "Storage ERROR : Could not get time of day from time()" << endl;
#endif
}
@@ -1546,7 +1546,7 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
if (strftime(nowstr, SLENGTH, "%m/%d/%Y", nowstruct) == (size_t) 0)
{
#ifdef STORAGE_DEB
#ifdef OCCT_DEBUG
cerr << "Storage ERROR : Could not get string from strftime()" << endl;
#endif
}