2014-11-22 22:18:18 +08:00
|
|
|
#include "synchronousmachine.h"
|
|
|
|
|
|
2014-11-24 22:01:30 +08:00
|
|
|
SynchronousMachine::SynchronousMachine(QObject *parent):BasicElementInfo(parent)
|
2014-11-22 22:18:18 +08:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool SynchronousMachine::derivedParse(QXmlStreamReader &reader)
|
|
|
|
|
{
|
|
|
|
|
if("ConductingEquipment.Terminals"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
|
|
|
|
|
{
|
|
|
|
|
QString terminal;
|
|
|
|
|
terminal=reader.attributes().value("rdf:resource").toString();
|
2014-11-24 22:01:30 +08:00
|
|
|
this->terminal=terminal.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
|
2014-11-22 22:18:18 +08:00
|
|
|
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool SynchronousMachine::parse(QXmlStreamReader &reader)
|
|
|
|
|
{
|
|
|
|
|
return this->parseBasicInfo(reader);
|
|
|
|
|
}
|