Salome HOME
PR: merge from BR_DATACONV_PR tag "mergeto_trunk_25oct06"
[modules/yacs.git] / src / engine / DataFlowPort.cxx
1 #include "DataFlowPort.hxx"
2
3 using namespace YACS::ENGINE;
4 using namespace std;
5
6 const char DataFlowPort::NAME[]="DataFlowPort";
7
8 DataFlowPort::DataFlowPort(const string& name, Node *node, TypeCode* type):Port(node),_name(name)
9 {
10   _type = type;
11 }
12
13 string DataFlowPort::getNameOfTypeOfCurrentInstance() const
14 {
15   return NAME;
16 }
17
18 TypeCode* DataFlowPort::edGetType() const
19 {
20   return _type;
21 }
22
23 TypeCode * DataFlowPort::type()
24 {
25   return _type;
26 }
27
28 void DataFlowPort::edSetType(TypeCode* type)
29 {
30   _type = type;
31 }
32