setSchema(value);
else if(name == "level")
setLevel(value);
- else
- InputDataStreamPort::setProperty(name,value);
+ InputDataStreamPort::setProperty(name,value);
}
#ifdef DSC_PORTS
setSchema(value);
else if(name == "level")
setLevel(value);
- else
- OutputDataStreamPort::setProperty(name,value);
+ OutputDataStreamPort::setProperty(name,value);
}
std::string OutputCalStreamPort::getNameOfTypeOfCurrentInstance() 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 ";
}
+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<InputDataStreamPort *>(inPort),forward);
+}
+