25
testHasttable/substation.cpp
Normal file
25
testHasttable/substation.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user