cimforreduceloss/testHasttable/synchronousmachine.cpp

23 lines
706 B
C++

#include "synchronousmachine.h"
SynchronousMachine::SynchronousMachine(QObject *parent):BasicElementInfo(parent)
{
}
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).toString();//返回整个字符串的Ref
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
}
return true;
}
bool SynchronousMachine::parse(QXmlStreamReader &reader)
{
return this->parseBasicInfo(reader);
}