QString widthStr;
QString purposeStr;
int purpose;
- QString levelStr;
- int level;
QString multStr;
int mult;
AbstractInterface* inter;
cout << "purpose for " << nameStr.toStdString() << " : " << purposeStr.toStdString() << endl;
purpose = ReferenceInterface::translatePurpose(purposeStr);
cout << "translated purpose : " << purpose << endl;
- levelStr = eltInput.attribute("level","none");
- level = ReferenceInterface::translateLevel(levelStr);
multStr = eltInput.attribute("multiplicity","none");
mult = ReferenceInterface::translateMultiplicity(multStr);
- inter = new ReferenceInterface(this,nameStr,typeStr,widthStr,AbstractInterface::Input, purpose, level, mult);
+ inter = new ReferenceInterface(this,nameStr,typeStr,widthStr,AbstractInterface::Input, purpose, mult);
inputs.append(inter);
}
widthStr = eltOutput.attribute("width","none");
purposeStr = eltOutput.attribute("type","none");
purpose = ReferenceInterface::translatePurpose(purposeStr);
- levelStr = eltOutput.attribute("level","none");
- level = ReferenceInterface::translateLevel(levelStr);
multStr = eltOutput.attribute("multiplicity","none");
mult = ReferenceInterface::translateMultiplicity(multStr);
- inter = new ReferenceInterface(this,nameStr,typeStr,widthStr,AbstractInterface::Output, purpose, level, mult);
+ inter = new ReferenceInterface(this,nameStr,typeStr,widthStr,AbstractInterface::Output, purpose, mult);
outputs.append(inter);
}
widthStr = eltBidir.attribute("width","none");
purposeStr = eltBidir.attribute("type","none");
purpose = ReferenceInterface::translatePurpose(purposeStr);
- levelStr = eltBidir.attribute("level","none");
- level = ReferenceInterface::translateLevel(levelStr);
multStr = eltBidir.attribute("multiplicity","none");
mult = ReferenceInterface::translateMultiplicity(multStr);
- inter = new ReferenceInterface(this,nameStr,typeStr,widthStr,AbstractInterface::InOut, purpose, level, mult);
+ inter = new ReferenceInterface(this,nameStr,typeStr,widthStr,AbstractInterface::InOut, purpose, mult);
bidirs.append(inter);
}
}
toWrite << iface->getName();
toWrite << iface->getWidth();
toWrite << iface->getPurpose();
- toWrite << iface->getDirection();
- toWrite << iface->getLevel();
+ toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
}
toWrite << b.outputs.size();
toWrite << iface->getName();
toWrite << iface->getWidth();
toWrite << iface->getPurpose();
- toWrite << iface->getDirection();
- toWrite << iface->getLevel();
+ toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
}
toWrite << b.bidirs.size();
toWrite << iface->getName();
toWrite << iface->getWidth();
toWrite << iface->getPurpose();
- toWrite << iface->getDirection();
- toWrite << iface->getLevel();
+ toWrite << iface->getDirection();
toWrite << iface->getMultiplicity();
}
in >> val;
iface->setPurpose(val);
in >> val;
- iface->setDirection(val);
- in >> val;
- iface->setLevel(val);
+ iface->setDirection(val);
in >> val;
iface->setMultiplicity(val);
b.inputs.append(iface);
iface->setPurpose(val);
in >> val;
iface->setDirection(val);
- in >> val;
- iface->setLevel(val);
- in >> val;
+ in >> val;
iface->setMultiplicity(val);
b.outputs.append(iface);
}
iface->setPurpose(val);
in >> val;
iface->setDirection(val);
- in >> val;
- iface->setLevel(val);
- in >> val;
+ in >> val;
iface->setMultiplicity(val);
b.bidirs.append(iface);
}