#include "DataFlowPort.hxx"
using namespace YACS::ENGINE;
-using YACS::DynType;
+using namespace std;
const char DataFlowPort::NAME[]="DataFlowPort";
-DataFlowPort::DataFlowPort(const std::string& name, Node *node, DynType type):Port(node),_name(name),_data(type)
+DataFlowPort::DataFlowPort(const string& name, Node *node, TypeCode* type):Port(node),_name(name)
{
+ _type = type;
}
-std::string DataFlowPort::getNameOfTypeOfCurrentInstance() const
+string DataFlowPort::getNameOfTypeOfCurrentInstance() const
{
return NAME;
}
-DynType DataFlowPort::edGetType() const
+TypeCode* DataFlowPort::edGetType() const
{
- return _data.edGetType();
+ return _type;
}
-void DataFlowPort::edSetType(DynType type)
+TypeCode * DataFlowPort::type()
{
- _data.edInitToType(type);
+ return _type;
}
+
+void DataFlowPort::edSetType(TypeCode* type)
+{
+ _type = type;
+}
+