增加读取和取回PowerTransformer的NamingDescription
Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user