加了Substation的类

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-12-11 19:57:55 +08:00
parent d6bcb9a0c5
commit 2e46068680
7 changed files with 61 additions and 32 deletions

View File

@@ -0,0 +1,25 @@
#include "substation.h"
Substation::Substation(QObject *parent):BasicElementInfo(parent)
{
}
bool Substation::parse(QXmlStreamReader& reader)
{
return this->parseBasicInfo(reader);
}
bool Substation::derivedParse(QXmlStreamReader& reader)
{
if(reader.name()=="Naming.description")
{
this->namingDescription=reader.readElementText();
}
if(reader.name()=="Substation.MemberOf_Feeder" && reader.attributes().hasAttribute("rdf:resource"))
{
this->substationMemberOf_Feeder=reader.attributes().value("rdf:resource").toString();
}
return true;
}