]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/DataFlowPort.cxx
Salome HOME
PR: merge from BR_DATACONV_PR tag "mergeto_trunk_25oct06"
[modules/yacs.git] / src / engine / DataFlowPort.cxx
index 013033825acf8ccef568d484742394b0067c2554..bc58254462ddd204fa24490c470eb86535d3de72 100644 (file)
@@ -1,25 +1,32 @@
 #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;
+}
+