2014-11-22 22:18:18 +08:00
|
|
|
#include "busbarsection.h"
|
2014-11-24 22:01:30 +08:00
|
|
|
#include <iostream>
|
|
|
|
|
BusbarSection::BusbarSection(QObject *parent):BasicElementInfo(parent)
|
2014-11-22 22:18:18 +08:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool BusbarSection::derivedParse(QXmlStreamReader& reader)
|
|
|
|
|
{
|
2014-11-26 17:09:37 +08:00
|
|
|
// std::cout<<reader.name().toString().toStdString()<<std::endl;
|
2014-11-22 22:18:18 +08:00
|
|
|
if("ConductingEquipment.Terminals"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
|
|
|
|
|
{
|
|
|
|
|
QString terminal;
|
|
|
|
|
terminal=reader.attributes().value("rdf:resource").toString();
|
2014-12-06 22:12:17 +08:00
|
|
|
this->terminal=terminal.replace("#","").leftRef(-1).toString();
|
2014-11-22 22:18:18 +08:00
|
|
|
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
|
2014-12-25 16:21:20 +08:00
|
|
|
// std::cout<<"ConductingEquipment.Terminals"<<this->terminal.toStdString()<<std::endl;
|
|
|
|
|
}
|
|
|
|
|
if("Equipment.MemberOf_EquipmentContainer"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
|
|
|
|
|
{
|
|
|
|
|
QString container;
|
|
|
|
|
container=reader.attributes().value("rdf:resource").toString();
|
|
|
|
|
this->equipmentMemberOf_EquipmentContainer=container.replace("#","").leftRef(-1).toString();
|
|
|
|
|
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
|
2014-11-26 17:09:37 +08:00
|
|
|
// std::cout<<"ConductingEquipment.Terminals"<<this->terminal.toStdString()<<std::endl;
|
2014-11-22 22:18:18 +08:00
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-25 16:21:20 +08:00
|
|
|
QString BusbarSection::getEquipmentMemberOf_EquipmentContainer()
|
|
|
|
|
{
|
|
|
|
|
return this->equipmentMemberOf_EquipmentContainer;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-26 17:09:37 +08:00
|
|
|
QString BusbarSection::getTerminal()
|
|
|
|
|
{
|
|
|
|
|
return this->terminal;
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-22 22:18:18 +08:00
|
|
|
bool BusbarSection::parse(QXmlStreamReader& reader)
|
|
|
|
|
{
|
2014-11-24 22:01:30 +08:00
|
|
|
// std::cout<<"BusbarSection"<<std::endl;
|
2014-11-22 22:18:18 +08:00
|
|
|
return this->parseBasicInfo(reader);
|
2014-11-24 22:01:30 +08:00
|
|
|
|
2014-11-22 22:18:18 +08:00
|
|
|
}
|