Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / engine / InputDataStreamPort.cxx
1 #include "InputDataStreamPort.hxx"
2 #include <iostream>
3
4 using namespace YACS::ENGINE;
5 using namespace std;
6
7 const char InputDataStreamPort::NAME[]="InputDataStreamPort";
8
9 InputDataStreamPort::InputDataStreamPort(const InputDataStreamPort& other, Node *newHelder):
10     DataStreamPort(other,newHelder),
11     InPort(other,newHelder),
12     DataPort(other,newHelder),
13     Port(other,newHelder)
14 {
15 }
16
17 InputDataStreamPort::InputDataStreamPort(const std::string& name, Node *node, TypeCode* type):
18     DataStreamPort(name,node,type),
19     InPort(name,node,type),
20     DataPort(name,node,type),
21     Port(node)
22 {
23 }
24
25 InputDataStreamPort::~InputDataStreamPort()
26 {
27 }
28
29 string InputDataStreamPort::getNameOfTypeOfCurrentInstance() const
30 {
31   return NAME;
32 }
33
34 InputDataStreamPort *InputDataStreamPort::clone(Node *newHelder) const
35 {
36   return new InputDataStreamPort(*this,newHelder);
37 }