Files
cimforreduceloss/testHasttable/compensator.cpp
facat@lab.com 000f9b89fa 1.注释掉一些不用的输出
2.删掉一些错误的注释

Signed-off-by: facat@lab.com <facat@lab.com>
2014-12-06 22:12:17 +08:00

24 lines
643 B
C++

#include "compensator.h"
Compensator::Compensator(QObject *parent):BasicElementInfo(parent)
{
}
bool Compensator::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();
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
}
return true;
}
bool Compensator::parse(QXmlStreamReader &reader)
{
return this->parseBasicInfo(reader);
}