Salome HOME
projects
/
modules
/
yacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git]
/
src
/
engine
/
Port.cxx
diff --git
a/src/engine/Port.cxx
b/src/engine/Port.cxx
index 9604bdb7fb360dfed572c30fe8b1c6891cd096ce..9476c510065cff548720b3bb432797352b07bf7c 100644
(file)
--- a/
src/engine/Port.cxx
+++ b/
src/engine/Port.cxx
@@
-1,16
+1,21
@@
#include "Port.hxx"
#include "Port.hxx"
+#include <iostream>
using namespace YACS::ENGINE;
using namespace std;
const char Port::NAME[]="Port";
using namespace YACS::ENGINE;
using namespace std;
const char Port::NAME[]="Port";
-int Port::
total_
= 0;
+int Port::
_total
= 0;
-Port::Port(Node *node)
- : _node(node)
+Port::Port(Node *node):_node(node)
{
{
- id_ = total_++;
+ _id = _total++;
+}
+
+Port::Port(const Port& other, Node *newHelder):_node(newHelder)
+{
+ _id = _total++;
}
Port::~Port()
}
Port::~Port()
@@
-21,8
+26,3
@@
string Port::getNameOfTypeOfCurrentInstance() const
{
return NAME;
}
{
return NAME;
}
-
-// TypeCode * Port::type()
-// {
-// return _type;
-// }