Salome HOME
Traces for Suspend/Resume and for invalid SetParams call
authorrahuel <rahuel@opencascade.com>
Wed, 12 May 2004 09:11:09 +0000 (09:11 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 12 May 2004 09:11:09 +0000 (09:11 +0000)
src/Supervision/CNode_Impl.cxx
src/Supervision/StreamPort_Impl.cxx

index 89ee87e4b399f007090c9bc553d5e028a74f4e92..2ee04195ff86032aa8d93e89c07d7a2670f7e046 100644 (file)
@@ -1672,18 +1672,20 @@ bool CNode_Impl::Stop() {
   return RetVal ;
 }
 bool CNode_Impl::Suspend() {
-//  beginService( "CNode_Impl::Suspend" );
+  beginService( "CNode_Impl::Suspend" );
   bool RetVal = false ;
   GraphExecutor::DataFlow * _DataFlowExecutor = _DataFlowEditor->Executor() ;
   if ( _DataFlowExecutor ) {
     if ( _IsNode ) {
+      MESSAGE( "CNode_Impl::Suspend " << Name() ) ;
       RetVal = _DataFlowExecutor->Suspend( Name() ) ;
     }
     else {
+      MESSAGE( "CNode_Impl::Suspend " << _DataFlowExecutor->Graph()->Name() ) ;
       RetVal = _DataFlowExecutor->Suspend() ;
     }
   }
-//  endService( "CNode_Impl::Suspend" );
+  endService( "CNode_Impl::Suspend" );
   return RetVal ;
 }
 bool CNode_Impl::SuspendDone() {
@@ -1702,18 +1704,20 @@ bool CNode_Impl::SuspendDone() {
   return RetVal ;
 }
 bool CNode_Impl::Resume() {
-//  beginService( "CNode_Impl::Resume" );
   bool RetVal = false ;
+  beginService( "CNode_Impl::Resume" );
   GraphExecutor::DataFlow * _DataFlowExecutor = _DataFlowEditor->Executor() ;
   if ( _DataFlowExecutor ) {
     if ( _IsNode ) {
+      MESSAGE( "CNode_Impl::Resume " << Name() ) ;
       RetVal = _DataFlowExecutor->Resume( Name() ) ;
     }
     else {
+      MESSAGE( "CNode_Impl::Resume " << _DataFlowExecutor->Graph()->Name() ) ;
       RetVal = _DataFlowExecutor->Resume() ;
     }
   }
-//  endService( "CNode_Impl::Resume" );
+  endService( "CNode_Impl::Resume" );
   return RetVal ;
 }
 
index 7f5311b19716ae51d973b0cbb718cba091036e8b..21fec367f26c0a5d77f904485d87b2640da2a3b5 100644 (file)
@@ -185,8 +185,14 @@ bool StreamPort_Impl::SetParams( const SUPERV::KindOfSchema aKindOfSchema ,
   if ( IsInput() ) {
     GraphBase::InDataStreamPort * anInStreamPort = (GraphBase::InDataStreamPort * ) DataFlowPort() ;
     RetVal = anInStreamPort->SetParams( aKindOfSchema , aKindOfInterpolation , aKindOfExtrapolation ) ;
-    MESSAGE( "OutStreamPort_Impl::SetParams( " << aKindOfSchema << " , " << aKindOfInterpolation
-             << " , " << aKindOfExtrapolation << " ) sts " << RetVal ) ;
+    if ( RetVal ) {
+      MESSAGE( "OutStreamPort_Impl::SetParams( " << aKindOfSchema << " , " << aKindOfInterpolation
+               << " , " << aKindOfExtrapolation << " ) SUCCESS " ) ;
+    }
+    else {
+      MESSAGE( "OutStreamPort_Impl::SetParams( " << aKindOfSchema << " , " << aKindOfInterpolation
+               << " , " << aKindOfExtrapolation << " ) FAILED " ) ;
+    }
   }
   else {
     MESSAGE( "OutStreamPort_Impl::SetParams( " << aKindOfSchema << " , " << aKindOfInterpolation