Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[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 DataFlowPort& other, Node *newHelder):DataPort(other,newHelder),Port(other,newHelder)
9 {
10 }
11
12 DataFlowPort::DataFlowPort(const std::string& name, Node *node, TypeCode* type):DataPort(name,node,type),Port(node)
13 {
14 }
15
16 DataFlowPort::~DataFlowPort()
17 {
18 }
19
20 string DataFlowPort::getNameOfTypeOfCurrentInstance() const
21 {
22   return NAME;
23 }
24
25 bool DataFlowPort::isDifferentTypeOf(const DataPort *other) const
26 {
27   return (dynamic_cast<const DataFlowPort *>(other))==0;
28 }