From a5872218453f6d970d38b1e83f7a1076b834e209 Mon Sep 17 00:00:00 2001 From: rahuel Date: Mon, 26 Apr 2004 13:43:16 +0000 Subject: [PATCH] Debug of py generation for switch nodes. --- src/GraphBase/DataFlowBase_ComputingNode.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GraphBase/DataFlowBase_ComputingNode.cxx b/src/GraphBase/DataFlowBase_ComputingNode.cxx index c09fda1..2be8506 100644 --- a/src/GraphBase/DataFlowBase_ComputingNode.cxx +++ b/src/GraphBase/DataFlowBase_ComputingNode.cxx @@ -1144,7 +1144,7 @@ bool GraphBase::ComputingNode::SavePY( ostream &f , const char * aGraphName , f << "I" << EndName << anInPort->PortName() << " = " << EndName << ".GetInPort( '" << anInPort->PortName() << "' )" << endl ; } - else if ( anInPort->IsInLine() ) { + else if ( anInPort->IsInLine() || anInPort->IsEndSwitch() ) { f << "I" << EndName << anInPort->PortName() << " = " << EndName << ".InPort( '" << anInPort->PortName() << "' , '" << anInPort->PortType() << "' )" << endl ; @@ -1171,7 +1171,7 @@ bool GraphBase::ComputingNode::SavePY( ostream &f , const char * aGraphName , f << "O" << EndName << anOutPort->PortName() << " = " << EndName << ".GetOutPort( '" << anOutPort->PortName() << "' )" << endl ; } - else if ( anOutPort->IsInLine() ) { + else if ( anOutPort->IsInLine() || anOutPort->IsSwitch() ) { f << "O" << EndName << anOutPort->PortName() << " = " << EndName << ".OutPort( '" << anOutPort->PortName() << "' , '" << anOutPort->PortType() << "' )" << endl ; @@ -1231,7 +1231,7 @@ bool GraphBase::ComputingNode::SavePY( ostream &f , const char * aGraphName , const GraphBase::InPort * anInPort = GetNodeInPort(i) ; cdebug << "Node " << Name() << " InPort " << anInPort->PortName() << " " << anInPort->Kind() << endl ; - if ( anInPort->IsInLine() ) { + if ( anInPort->IsInLine() || anInPort->IsEndSwitch() ) { f << "I" << Name() << anInPort->PortName() << " = " << Name() << ".InPort( '" << anInPort->PortName() << "' , '" << anInPort->PortType() << "' )" << endl ; @@ -1245,7 +1245,7 @@ bool GraphBase::ComputingNode::SavePY( ostream &f , const char * aGraphName , const GraphBase::OutPort * anOutPort = GetNodeOutPort(i) ; cdebug << "Node " << Name() << " OutPort " << anOutPort->PortName() << " " << anOutPort->Kind() << endl ; - if ( anOutPort->IsInLine() ) { + if ( anOutPort->IsInLine() || anOutPort->IsSwitch() ) { f << "O" << Name() << anOutPort->PortName() << " = " << Name() << ".OutPort( '" << anOutPort->PortName() << "' , '" << anOutPort->PortType() << "' )" << endl ; -- 2.39.2