]> SALOME platform Git repositories - modules/yacs.git/blob - src/engine/Port.cxx
Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / engine / Port.cxx
1 #include "Port.hxx"
2 #include "Node.hxx"
3 #include <iostream>
4
5 using namespace YACS::ENGINE;
6 using namespace std;
7
8 //#define _DEVDEBUG_
9 #include "YacsTrace.hxx"
10
11 const char Port::NAME[]="Port";
12
13 int Port::_total = 0;
14
15 Port::Port(Node *node):_node(node)
16 {
17   _id = _total++;
18 }
19
20 Port::Port(const Port& other, Node *newHelder):_node(newHelder)
21 {
22   _id = _total++;
23 }
24
25 Port::~Port()
26 {
27 }
28
29 string Port::getNameOfTypeOfCurrentInstance() const
30 {
31   return NAME;
32 }
33
34 void Port::modified()
35 {
36   DEBTRACE("Port::modified()");
37   if(_node)
38     _node->modified();
39 }