From: Konstantin LEONTEV Date: Tue, 15 Nov 2022 06:18:02 +0000 (+0300) Subject: [bos #32517][EDF] Dynamic log messages switched on and off by SALOME_VERBOSE environm... X-Git-Tag: V9_10_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b76b965e169031252c001e65e48b9840fcfade08;hp=2ea9f2f9180163592beab5376115dd478c4094cd;p=samples%2Fcomponent.git [bos #32517][EDF] Dynamic log messages switched on and off by SALOME_VERBOSE environment variable --- diff --git a/src/AddComponent/AddComponent_Impl.cxx b/src/AddComponent/AddComponent_Impl.cxx index 82572f7..e7c18ea 100644 --- a/src/AddComponent/AddComponent_Impl.cxx +++ b/src/AddComponent/AddComponent_Impl.cxx @@ -55,7 +55,7 @@ AddComponent_Impl::AddComponent_Impl( CORBA::ORB_ptr orb, Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) { MESSAGE("AddComponent_Impl::AddComponent_Impl this " << hex << this << dec << "activate object instanceName(" - << instanceName << ") interfaceName(" << interfaceName << ")" ) + << instanceName << ") interfaceName(" << interfaceName << ")" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); LastAddition = 0 ; @@ -93,7 +93,7 @@ CORBA::Double AddComponent_Impl::Add( CORBA::Double x , CORBA::Double y , CORBA: Sleep(S*1000); #endif MESSAGE( "AddComponent_Impl::Add( " << x << " , " << y << " , " << z - << " ) returns " << (x - y) << " after " << S << " seconds" ) + << " ) returns " << (x - y) << " after " << S << " seconds" ); LastAddition = z ; endService( " AddComponent_Impl::Add" ); return (x - y) ; diff --git a/src/AddComponent/Adder_Impl.cxx b/src/AddComponent/Adder_Impl.cxx index 710e2a2..07a9adb 100644 --- a/src/AddComponent/Adder_Impl.cxx +++ b/src/AddComponent/Adder_Impl.cxx @@ -54,7 +54,7 @@ Adder_Impl::Adder_Impl( CORBA::ORB_ptr orb , Names( graphName , nodeName ) ; MESSAGE("Adder_Impl::Adder_Impl activate object instanceName(" << instanceName << ") interfaceName(" << interfaceName << ") --> " - << hex << (void *) this << dec ) + << hex << (void *) this << dec ); beginService( "Adder_Impl::Adder_Impl" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); @@ -104,7 +104,7 @@ CORBA::Double Adder_Impl::Add( CORBA::Double x , CORBA::Double y , CORBA::Double Sleep(S*1000); #endif MESSAGE( "Adder_Impl::Add( " << x << " , " << y << " , " << z - << " ) returns " << -(x - y) << " after " << S << " seconds" ) + << " ) returns " << -(x - y) << " after " << S << " seconds" ); LastAddition = z ; endService( " Adder_Impl::Add" ); return -(x - y) ; @@ -135,7 +135,7 @@ CORBA::Double Adder_Impl::AddAndCompare( CORBA::Double x , CORBA::Double y , Sleep(S*1000); #endif MESSAGE( "Adder_Impl::AddAndCompare( " << x << " , " << y << " , " << z - << " ) returns " << -(x - y) << " after " << S << " seconds" ) + << " ) returns " << -(x - y) << " after " << S << " seconds" ); LastAddition = z ; double ValFunc ; sendMessage(NOTIF_TRACE, "Adder_Impl::AddAndCompare will call anOtherAdder->LastValue()"); diff --git a/src/AdditionComponent/AdditionComponent_Impl.cxx b/src/AdditionComponent/AdditionComponent_Impl.cxx index cca616f..d50cb3b 100644 --- a/src/AdditionComponent/AdditionComponent_Impl.cxx +++ b/src/AdditionComponent/AdditionComponent_Impl.cxx @@ -55,7 +55,7 @@ AdditionInterface_Impl::AdditionInterface_Impl( CORBA::ORB_ptr orb, Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) { MESSAGE("AdditionInterface_Impl::AdditionInterface_Impl this " << hex << this << dec << "activate object instanceName(" - << instanceName << ") interfaceName(" << interfaceName << ")" ) + << instanceName << ") interfaceName(" << interfaceName << ")" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); LastAddition = 0 ; @@ -92,7 +92,7 @@ CORBA::Double AdditionInterface_Impl::Add( CORBA::Double x , CORBA::Double y , C #else Sleep(S*1000); #endif - MESSAGE( "AdditionInterface_Impl::Add( " << x << " , " << y << " , " << z << " ) returns " << (x - y) << " after " << S << " seconds" ) + MESSAGE( "AdditionInterface_Impl::Add( " << x << " , " << y << " , " << z << " ) returns " << (x - y) << " after " << S << " seconds" ); LastAddition = z ; endService( " AdditionInterface_Impl::Add" ); return (x - y) ; diff --git a/src/AdditionComponent/Addition_Adder_Impl.cxx b/src/AdditionComponent/Addition_Adder_Impl.cxx index 2ada4bb..2e357b1 100644 --- a/src/AdditionComponent/Addition_Adder_Impl.cxx +++ b/src/AdditionComponent/Addition_Adder_Impl.cxx @@ -54,7 +54,7 @@ Adder_Impl::Adder_Impl( CORBA::ORB_ptr orb , Names( graphName , nodeName ) ; MESSAGE("Adder_Impl::Adder_Impl activate object instanceName(" << instanceName << ") interfaceName(" << interfaceName << ") --> " - << hex << (void *) this << dec ) + << hex << (void *) this << dec ); beginService( "Adder_Impl::Adder_Impl" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); @@ -104,7 +104,7 @@ CORBA::Double Adder_Impl::Add( CORBA::Double x , CORBA::Double y , CORBA::Double Sleep(S*1000); #endif MESSAGE( "Adder_Impl::Add( " << x << " , " << y << " , " << z - << " ) returns " << -(x - y) << " after " << S << " seconds" ) + << " ) returns " << -(x - y) << " after " << S << " seconds" ); LastAddition = z ; endService( " Adder_Impl::Add" ); return -(x - y) ; @@ -135,7 +135,7 @@ CORBA::Double Adder_Impl::AddAndCompare( CORBA::Double x , CORBA::Double y , Sleep(S*1000); #endif MESSAGE( "Adder_Impl::AddAndCompare( " << x << " , " << y << " , " << z - << " ) returns " << -(x - y) << " after " << S << " seconds" ) + << " ) returns " << -(x - y) << " after " << S << " seconds" ); LastAddition = z ; double ValFunc ; sendMessage(NOTIF_TRACE, "Adder_Impl::AddAndCompare will call anOtherAdder->LastValue()"); diff --git a/src/DataStreamComponent/DataStreamComponent_Impl.cxx b/src/DataStreamComponent/DataStreamComponent_Impl.cxx index 2b5e291..d9da1f1 100644 --- a/src/DataStreamComponent/DataStreamComponent_Impl.cxx +++ b/src/DataStreamComponent/DataStreamComponent_Impl.cxx @@ -48,7 +48,7 @@ DataStreamFactory_Impl::DataStreamFactory_Impl( CORBA::ORB_ptr orb, Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) { MESSAGE("DataStreamFactory_Impl::DataStreamFactory_Impl this " << hex << this << dec << "activate object instanceName(" - << instanceName << ") interfaceName(" << interfaceName << ")" ) + << instanceName << ") interfaceName(" << interfaceName << ")" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); } @@ -158,7 +158,7 @@ DataStream_Impl::DataStream_Impl( CORBA::ORB_ptr orb , Names( graphName , nodeName ) ; MESSAGE("DataStream_Impl::DataStream_Impl activate object instanceName(" << instanceName << ") interfaceName(" << interfaceName << ") --> " - << hex << (void *) this << dec ) + << hex << (void *) this << dec ); beginService( "DataStream_Impl::DataStream_Impl" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); diff --git a/src/DivComponent/DivComponent.cxx b/src/DivComponent/DivComponent.cxx index e990575..b5f2d7c 100644 --- a/src/DivComponent/DivComponent.cxx +++ b/src/DivComponent/DivComponent.cxx @@ -87,7 +87,7 @@ void DivComponentEngine::Div( double x , double y , double & z ) { #endif sendMessage(NOTIF_TRACE, "Div is Much More Difficult Operation"); MESSAGE("DivComponentEngine::Div( " << x << " , " << y << " , " << z - << " ) after " << S << " seconds" ) + << " ) after " << S << " seconds" ); endService( " DivComponentEngine::Div" ); } diff --git a/src/MulComponent/MulComponent.cxx b/src/MulComponent/MulComponent.cxx index 7a77e16..969ccfd 100644 --- a/src/MulComponent/MulComponent.cxx +++ b/src/MulComponent/MulComponent.cxx @@ -86,7 +86,7 @@ void MulComponentEngine::Mul( double x , double y , double & z ) { Sleep(S*1000); #endif MESSAGE( "MulComponentEngine::Mul( " << x << " , " << y << " , " << z - << " ) after " << S << " seconds" ) + << " ) after " << S << " seconds" ); endService( " MulComponentEngine::Mul" ); } diff --git a/src/SIGNALSComponent/SIGNALSComponent_Impl.cxx b/src/SIGNALSComponent/SIGNALSComponent_Impl.cxx index e21402a..39593f9 100644 --- a/src/SIGNALSComponent/SIGNALSComponent_Impl.cxx +++ b/src/SIGNALSComponent/SIGNALSComponent_Impl.cxx @@ -47,7 +47,7 @@ SIGNALSComponent_Impl::SIGNALSComponent_Impl( CORBA::ORB_ptr orb, Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) { MESSAGE("SIGNALSComponent_Impl::SIGNALSComponent_Impl activate object instanceName(" - << instanceName << ") interfaceName(" << interfaceName << ")" ) + << instanceName << ") interfaceName(" << interfaceName << ")" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); NULLPTR = NULL ; diff --git a/src/SubComponent/SubComponent.cxx b/src/SubComponent/SubComponent.cxx index bd25258..4e30cac 100644 --- a/src/SubComponent/SubComponent.cxx +++ b/src/SubComponent/SubComponent.cxx @@ -85,7 +85,7 @@ void SubComponentEngine::Sub( double x , double y , double & z ) { Sleep(S*1000); #endif MESSAGE( "SubComponentEngine::Sub( " << x << " , " << y << " , " << z - << " ) after " << S << " seconds" ) + << " ) after " << S << " seconds" ); endService( " SubComponentEngine::Sub" ); } diff --git a/src/SyrComponent/SyrComponent_Impl.cxx b/src/SyrComponent/SyrComponent_Impl.cxx index 49e1e53..e900598 100644 --- a/src/SyrComponent/SyrComponent_Impl.cxx +++ b/src/SyrComponent/SyrComponent_Impl.cxx @@ -50,7 +50,7 @@ SyrComponent_Impl::SyrComponent_Impl( CORBA::ORB_ptr orb , Engines_Component_i(orb, poa, contId, instanceName, interfaceName,true/*notif is true here for message*/,withRegistry) { MESSAGE("SyrComponent_Impl::SyrComponent_Impl this " << hex << this << dec << "activate object instanceName(" - << instanceName << ") interfaceName(" << interfaceName << ")" ) + << instanceName << ") interfaceName(" << interfaceName << ")" ); if ( kactivate ) { _thisObj = this ; _id = _poa->activate_object(_thisObj); @@ -374,7 +374,7 @@ ListOfSyr_Impl::ListOfSyr_Impl( CORBA::ORB_ptr orb , Names( graphName , nodeName ) ; MESSAGE("ListOfSyr_Impl::ListOfSyr_Impl activate object instanceName(" << instanceName << ") interfaceName(" << interfaceName << ") --> " - << hex << (void *) this << dec ) + << hex << (void *) this << dec ); beginService( "ListOfSyr_Impl::ListOfSyr_Impl" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); @@ -452,7 +452,7 @@ Syr_Impl::Syr_Impl( CORBA::ORB_ptr orb , Names( graphName , nodeName ) ; MESSAGE("Syr_Impl::Syr_Impl activate object instanceName(" << instanceName << ") interfaceName(" << interfaceName << ") --> " - << hex << (void *) this << dec ) + << hex << (void *) this << dec ); beginService( "Syr_Impl::Syr_Impl" ); _thisObj = this ; _id = _poa->activate_object(_thisObj); diff --git a/src/TypesCheck/TypesCheck_Impl.cxx b/src/TypesCheck/TypesCheck_Impl.cxx index 3ffc7d2..6a40544 100644 --- a/src/TypesCheck/TypesCheck_Impl.cxx +++ b/src/TypesCheck/TypesCheck_Impl.cxx @@ -49,7 +49,7 @@ TypesCheck_Impl::TypesCheck_Impl( CORBA::ORB_ptr orb , Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) { MESSAGE("TypesCheck_Impl::TypesCheck_Impl this " << hex << this << dec << "activate object instanceName(" - << instanceName << ") interfaceName(" << interfaceName << ")" ) + << instanceName << ") interfaceName(" << interfaceName << ")" ); if ( kactivate ) { _thisObj = this ; _id = _poa->activate_object(_thisObj);