@@ -1,6 +1,6 @@
|
||||
#include "disconnector.h"
|
||||
|
||||
Disconnector::Disconnector()
|
||||
Disconnector::Disconnector(QObject *parent):BasicElementInfo(parent)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ bool Disconnector::derivedParse(QXmlStreamReader &reader)
|
||||
{
|
||||
QString terminal;
|
||||
terminal=reader.attributes().value("rdf:resource").toString();
|
||||
this->terminalA=terminal.replace("#","").leftRef(-1);//返回整个字符串的Ref
|
||||
this->terminalA=terminal.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
|
||||
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminalA<<"\n";
|
||||
this->isTerminalA=false;
|
||||
}
|
||||
@@ -19,14 +19,14 @@ bool Disconnector::derivedParse(QXmlStreamReader &reader)
|
||||
{
|
||||
QString terminal;
|
||||
terminal=reader.attributes().value("rdf:resource").toString();
|
||||
this->terminalB=terminal.replace("#","").leftRef(-1);//返回整个字符串的Ref
|
||||
this->terminalB=terminal.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
|
||||
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminalB<<"\n";
|
||||
}
|
||||
if("Equipment.MemberOf_EquipmentContainer"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
|
||||
{
|
||||
QString ss;
|
||||
ss=reader.attributes().value("rdf:resource").toString();
|
||||
this->equipmentContainer=ss.replace("#","").leftRef(-1);//返回整个字符串的Ref
|
||||
this->equipmentContainer=ss.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
|
||||
qDebug()<<"got "<<"Equipment.MemberOf_EquipmentContainer "<<this->equipmentContainer<<"\n";
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user