const char DataFlowPort::NAME[]="DataFlowPort";
-DataFlowPort::DataFlowPort(const string& name, Node *node, TypeCode* type):Port(node),_name(name)
+DataFlowPort::DataFlowPort(const DataFlowPort& other, Node *newHelder):DataPort(other,newHelder),Port(other,newHelder)
{
- _type = type;
}
-string DataFlowPort::getNameOfTypeOfCurrentInstance() const
+DataFlowPort::DataFlowPort(const std::string& name, Node *node, TypeCode* type):DataPort(name,node,type),Port(node)
{
- return NAME;
}
-TypeCode* DataFlowPort::edGetType() const
+DataFlowPort::~DataFlowPort()
{
- return _type;
}
-TypeCode * DataFlowPort::type()
+string DataFlowPort::getNameOfTypeOfCurrentInstance() const
{
- return _type;
+ return NAME;
}
-void DataFlowPort::edSetType(TypeCode* type)
+bool DataFlowPort::isDifferentTypeOf(const DataPort *other) const
{
- _type = type;
+ return (dynamic_cast<const DataFlowPort *>(other))==0;
}
-