1 #include "DataPort.hxx"
4 using namespace YACS::ENGINE;
7 const char DataPort::NAME[]="DataPort";
14 DataPort::DataPort(const std::string& name, Node *node, TypeCode* type):Port(node),_name(name),_type(type)
19 DataPort::DataPort(const DataPort& other, Node *newHelder):Port(other,newHelder),_name(other._name),_type(other._type)
24 void DataPort::edSetType(TypeCode* type)
33 string DataPort::getNameOfTypeOfCurrentInstance() const
40 * If in historyOfLink different type of Port are detected : The first one (by starting from the end of 'historyOfLink')
41 * is returned. Else 0 is returned if they are all of the same type.
43 DataPort *DataPort::isCrossingType(const std::vector<DataPort *>& historyOfLink)
45 vector<DataPort *>::const_reverse_iterator iter=historyOfLink.rbegin()+1;
46 const DataPort *base=historyOfLink.back();
47 for(;iter!=historyOfLink.rend();iter++)
48 if(base->isDifferentTypeOf(*iter))