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
/
DataFlowPort.cxx
diff --git
a/src/engine/DataFlowPort.cxx
b/src/engine/DataFlowPort.cxx
index bc58254462ddd204fa24490c470eb86535d3de72..6e749ff79bcea7c23d2e43d268c14ec940f6b571 100644
(file)
--- a/
src/engine/DataFlowPort.cxx
+++ b/
src/engine/DataFlowPort.cxx
@@
-5,28
+5,24
@@
using namespace std;
const char DataFlowPort::NAME[]="DataFlowPort";
const char DataFlowPort::NAME[]="DataFlowPort";
-DataFlowPort::DataFlowPort(const
string& name, Node *node, TypeCode* type):Port(node),_name(name
)
+DataFlowPort::DataFlowPort(const
DataFlowPort& other, Node *newHelder):DataPort(other,newHelder),Port(other,newHelder
)
{
{
- _type = type;
}
}
-string DataFlowPort::getNameOfTypeOfCurrentInstance() const
+DataFlowPort::DataFlowPort(const std::string& name, Node *node, TypeCode* type):DataPort(name,node,type),Port(node)
{
{
- return NAME;
}
}
-TypeCode* DataFlowPort::edGetType() const
+DataFlowPort::~DataFlowPort()
{
{
- return _type;
}
}
-TypeCode * DataFlowPort::type()
+string DataFlowPort::getNameOfTypeOfCurrentInstance() const
{
{
- return
_type
;
+ return
NAME
;
}
}
-void DataFlowPort::edSetType(TypeCode* type)
+bool DataFlowPort::isDifferentTypeOf(const DataPort *other) const
{
{
-
_type = type
;
+
return (dynamic_cast<const DataFlowPort *>(other))==0
;
}
}
-