增加读取和取回PowerTransformer的NamingDescription

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-12-11 20:03:08 +08:00
parent 2e46068680
commit a27bb65465
3 changed files with 11 additions and 1 deletions

View File

@@ -29,9 +29,18 @@ bool PowerTransformer::derivedParse(QXmlStreamReader &reader)
this->equipmentContainer=ss.replace("#","").leftRef(-1).toString();
qDebug()<<"got "<<"Equipment.MemberOf_EquipmentContainer "<<this->equipmentContainer<<"\n";
}
if("Naming.description"==reader.name())
{
this->namingDescription=reader.readElementText();
}
return true;
}
QString PowerTransformer::getNamingDescription()
{
return this->namingDescription;
}
bool PowerTransformer::parse(QXmlStreamReader &reader)
{
return this->parseBasicInfo(reader);