From: rahuel Date: Wed, 9 Mar 2005 08:08:51 +0000 (+0000) Subject: Debug of KindOfPort X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=82fc902879aadddeba4aad64af991ed52e9f5c0c;p=modules%2Fsuperv.git Debug of KindOfPort --- diff --git a/src/GraphBase/DataFlowBase_OutPort.cxx b/src/GraphBase/DataFlowBase_OutPort.cxx index 61d6cfa..d03f937 100644 --- a/src/GraphBase/DataFlowBase_OutPort.cxx +++ b/src/GraphBase/DataFlowBase_OutPort.cxx @@ -103,17 +103,21 @@ bool GraphBase::OutPort::RemoveInPort() { } int index = 1 ; GraphBase::InPort * toPort = _InPorts[ index - 1 ] ; - cdebug << "OutPort::RemoveInPort " << NodeName() << "( " << PortName() << " " << PortStatus() << " ) --> " - << toPort->NodeName() << "( " << toPort->PortName() << " " << toPort->PortStatus() - << " )" << endl ; _InPortsSize -= 1 ; _InPorts.resize( _InPortsSize ) ; _Links.resize( _InPortsSize ) ; _MapOfInPorts.erase( toPort->NodePortName() ) ; if ( _InPortsSize == 0 ) { PortStatus(NotConnected ) ; + if ( IsSwitch() ) { + Kind( SUPERV::InLineParameter ) ; + } } toPort->RemoveOutPort() ; + cdebug << "OutPort::RemoveInPort " << NodeName() << "( " << PortName() << " " << PortStatus() + << " " << Kind() << " ) _InPortsSize " << _InPortsSize << " --> " + << toPort->NodeName() << "( " << toPort->PortName() << " " << toPort->PortStatus() + << " " << toPort->Kind() << " )" << endl ; return true ; } @@ -138,6 +142,9 @@ bool GraphBase::OutPort::RemoveInPort( GraphBase::InPort * toPort ) { _MapOfInPorts.erase( toPort->NodePortName() ) ; if ( _InPortsSize == 0 ) { PortStatus(NotConnected ) ; + if ( IsSwitch() ) { + Kind( SUPERV::InLineParameter ) ; + } } toPort->RemoveOutPort() ; return true ;