In sizing section : operator property is always converted to upper case (since opsim 'needs' it)

This commit is contained in:
Damien Dupuis 2010-09-09 08:03:31 +00:00
parent 1ee7622af9
commit 5876530c64
1 changed files with 3 additions and 1 deletions

View File

@ -568,7 +568,9 @@ void Circuit::readInstanceSizing(xmlNode* node, Sizing* sizing) {
xmlChar* orderC = xmlGetProp(node, (xmlChar*)"callOrder");
if (nameC && operatorC && simulModC && orderC) {
Name iName ((const char*)nameC);
Name opName ((const char*)operatorC);
string opStr ((const char*)operatorC);
transform(opStr.begin(), opStr.end(), opStr.begin(), ::toupper);
Name opName (opStr);
Name simulMod((const char*)simulModC);
unsigned callOrder = ::getValue<unsigned>(orderC);
Operator* op = sizing->addOperator(iName, opName, simulMod, callOrder);