X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOM%2FGEOM_Engine.cxx;h=dd7fefae6afb03f4a8dbfb025a7ca14d3af57f7a;hb=d617faae6bc5aeb91b63796618a20c7c13037b6c;hp=0386e423693ea90a94323fee37fd37f70cf1e6b0;hpb=436cccec5f4b7535a00ad549aba2aef16cb67fda;p=modules%2Fgeom.git diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index 0386e4236..dd7fefae6 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -37,6 +37,7 @@ #include "utilities.h" #include +#include #include #include @@ -62,7 +63,9 @@ #include +#if OCC_VERSION_LARGE < 0x07050000 #include +#endif #include #include @@ -80,13 +83,6 @@ #define C_SQR_BRACKET ']' #define PY_NULL "None" -#ifdef _DEBUG_ -static int MYDEBUG = 0; -using namespace std; -#else -static int MYDEBUG = 0; -#endif - // VSR 29/08/2017: 0023327, 0023428: eliminate unnecessary lines in Python dump // Next macro, when defined, causes appearing of SubShapeAllIDs(), SubShapeAllSortedIDs(), GetSameIDs() // and other such commands in Python dump. @@ -114,7 +110,7 @@ bool ProcessFunction(Handle(GEOM_Function)& theFunction, TCollection_AsciiString& theScript, TCollection_AsciiString& theAfterScript, const TVariablesList& theVariables, - const bool theIsPublished, + const bool /*theIsPublished*/, TDF_LabelMap& theProcessed, std::set& theIgnoreObjs, bool& theIsDumpCollected); @@ -1299,10 +1295,10 @@ Handle(TColStd_HSequenceOfInteger) FindEntries(TCollection_AsciiString& theStrin void ReplaceVariables(TCollection_AsciiString& theCommand, const TVariablesList& theVariables) { - if (MYDEBUG) + if (SALOME::VerbosityActivated()) std::cout<<"Command : "<GetCurrectState(); - if(MYDEBUG) { + if(SALOME::VerbosityActivated()) { std::cout<<"Variables from SObject:"<= aVariables.size()) continue; @@ -1492,27 +1488,30 @@ void ReplaceVariables(TCollection_AsciiString& theCommand, aReplacedParameter.InsertAfter(aReplacedParameter.Length(),"'"); } - if(MYDEBUG) - std::cout<<"aSection before : "<IncrementState(); } - if (MYDEBUG) + if (SALOME::VerbosityActivated()) std::cout<<"Command : "<