From 5e45640d57ede901426c4b65373ee7ddea94fab7 Mon Sep 17 00:00:00 2001 From: rahuel Date: Wed, 12 May 2004 09:11:09 +0000 Subject: [PATCH] Traces for Suspend/Resume and for invalid SetParams call --- src/Supervision/CNode_Impl.cxx | 12 ++++++++---- src/Supervision/StreamPort_Impl.cxx | 10 ++++++++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/Supervision/CNode_Impl.cxx b/src/Supervision/CNode_Impl.cxx index 89ee87e..2ee0419 100644 --- a/src/Supervision/CNode_Impl.cxx +++ b/src/Supervision/CNode_Impl.cxx @@ -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 ; } diff --git a/src/Supervision/StreamPort_Impl.cxx b/src/Supervision/StreamPort_Impl.cxx index 7f5311b..21fec36 100644 --- a/src/Supervision/StreamPort_Impl.cxx +++ b/src/Supervision/StreamPort_Impl.cxx @@ -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 -- 2.39.2