X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FCalStreamPort.cxx;fp=src%2Fruntime%2FCalStreamPort.cxx;h=e5da67a0318d51a6e24948e7d51dd88f87d46feb;hb=313a04631c63078d01c2f643a53500ec549d034e;hp=bd7d0eb87b518bf7110b6a0a978d0b47917fbe0d;hpb=a84e60a749da66dffb73297fa5082b70b9d62f7d;p=modules%2Fyacs.git diff --git a/src/runtime/CalStreamPort.cxx b/src/runtime/CalStreamPort.cxx index bd7d0eb87..e5da67a03 100644 --- a/src/runtime/CalStreamPort.cxx +++ b/src/runtime/CalStreamPort.cxx @@ -63,8 +63,7 @@ void InputCalStreamPort::setProperty(const std::string& name, const std::string& setSchema(value); else if(name == "level") setLevel(value); - else - InputDataStreamPort::setProperty(name,value); + InputDataStreamPort::setProperty(name,value); } #ifdef DSC_PORTS @@ -157,8 +156,7 @@ void OutputCalStreamPort::setProperty(const std::string& name, const std::string setSchema(value); else if(name == "level") setLevel(value); - else - OutputDataStreamPort::setProperty(name,value); + OutputDataStreamPort::setProperty(name,value); } std::string OutputCalStreamPort::getNameOfTypeOfCurrentInstance() const @@ -173,7 +171,7 @@ OutputCalStreamPort *OutputCalStreamPort::clone(Node *newHelder) const bool OutputCalStreamPort::addInPort(InPort *inPort) throw(Exception) { - DEBTRACE("OutputCalStreamPort::addInPort" << InputCalStreamPort::NAME ); + DEBTRACE("OutputCalStreamPort::addInPort " << InputCalStreamPort::NAME ); if(inPort->getNameOfTypeOfCurrentInstance()!=InputCalStreamPort::NAME) { string what="not compatible type of port requested during building of link FROM "; @@ -193,3 +191,15 @@ bool OutputCalStreamPort::addInPort(InPort *inPort) throw(Exception) } +int OutputCalStreamPort::removeInPort(InPort *inPort, bool forward) throw(Exception) +{ + DEBTRACE("OutputCalStreamPort::removeInPort"); + if(inPort->getNameOfTypeOfCurrentInstance()!=InputCalStreamPort::NAME && !forward) + { + string what="not compatible type of port requested during destruction of for link FROM "; + what+=NAME; what+=" TO "; what+=inPort->getNameOfTypeOfCurrentInstance(); + throw Exception(what); + } + return edRemoveInputDataStreamPort(static_cast(inPort),forward); +} +