@@ -1,6 +1,6 @@
|
||||
#include "busbarsection.h"
|
||||
|
||||
BusbarSection::BusbarSection()
|
||||
#include <iostream>
|
||||
BusbarSection::BusbarSection(QObject *parent):BasicElementInfo(parent)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ bool BusbarSection::derivedParse(QXmlStreamReader& reader)
|
||||
{
|
||||
QString terminal;
|
||||
terminal=reader.attributes().value("rdf:resource").toString();
|
||||
this->terminal=terminal.replace("#","").leftRef(-1);//返回整个字符串的Ref
|
||||
this->terminal=terminal.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
|
||||
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
|
||||
}
|
||||
return true;
|
||||
@@ -19,5 +19,7 @@ bool BusbarSection::derivedParse(QXmlStreamReader& reader)
|
||||
|
||||
bool BusbarSection::parse(QXmlStreamReader& reader)
|
||||
{
|
||||
// std::cout<<"BusbarSection"<<std::endl;
|
||||
return this->parseBasicInfo(reader);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user