23 lines
655 B
C++
23 lines
655 B
C++
|
|
#include "synchronousmachine.h"
|
||
|
|
|
||
|
|
SynchronousMachine::SynchronousMachine()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
bool SynchronousMachine::derivedParse(QXmlStreamReader &reader)
|
||
|
|
{
|
||
|
|
if("ConductingEquipment.Terminals"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
|
||
|
|
{
|
||
|
|
QString terminal;
|
||
|
|
terminal=reader.attributes().value("rdf:resource").toString();
|
||
|
|
this->terminal=terminal.replace("#","").leftRef(-1);//返回整个字符串的Ref
|
||
|
|
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
|
||
|
|
}
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool SynchronousMachine::parse(QXmlStreamReader &reader)
|
||
|
|
{
|
||
|
|
return this->parseBasicInfo(reader);
|
||
|
|
}
|