@@ -1,5 +1,5 @@
|
||||
#include "aclinesegment.h"
|
||||
|
||||
#include <iostream>
|
||||
ACLineSegment::ACLineSegment(QObject *parent):BasicElementInfo(parent),isTerminalA(true)
|
||||
{
|
||||
}
|
||||
@@ -28,9 +28,20 @@ bool ACLineSegment::derivedParse(QXmlStreamReader &reader)
|
||||
this->containsOfSubstation=ss.replace("#","").leftRef(-1).toString();
|
||||
qDebug()<<"got "<<"ConductingEquipment.Substation "<<this->containsOfSubstation<<"\n";
|
||||
}
|
||||
if("Naming.description"==reader.name())
|
||||
{
|
||||
// std::cout<<"Nd"<<std::endl;
|
||||
// std::cout<<reader.readElementText().toLocal8Bit().data()<<std::endl;
|
||||
this->lineName=reader.readElementText();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
QString ACLineSegment::getLineName()
|
||||
{
|
||||
return this->lineName;
|
||||
}
|
||||
|
||||
QString ACLineSegment::getTerminalA()
|
||||
{
|
||||
return this->terminalA;
|
||||
|
||||
Reference in New Issue
Block a user