把各种元件做出单独的类。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-11-22 22:18:18 +08:00
parent ccc4c1d90c
commit 407fe62995
25 changed files with 526 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
#include "busbarsection.h"
BusbarSection::BusbarSection()
{
}
bool BusbarSection::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 BusbarSection::parse(QXmlStreamReader& reader)
{
return this->parseBasicInfo(reader);
}