@@ -30,13 +30,26 @@ bool ACLineSegment::derivedParse(QXmlStreamReader &reader)
|
||||
}
|
||||
if("Naming.description"==reader.name())
|
||||
{
|
||||
// std::cout<<"Nd"<<std::endl;
|
||||
// std::cout<<reader.readElementText().toLocal8Bit().data()<<std::endl;
|
||||
this->namingDescription=reader.readElementText();
|
||||
}
|
||||
if("Conductor.length"==reader.name())
|
||||
{
|
||||
bool ok;
|
||||
this->conductorLength=reader.readElementText().toInt(&ok);
|
||||
if(!ok)
|
||||
{
|
||||
this->conductorLength=-100000;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
double ACLineSegment::getLength()
|
||||
{
|
||||
return this->conductorLength;
|
||||
}
|
||||
|
||||
QString ACLineSegment::getNamingDescription()
|
||||
{
|
||||
return this->namingDescription;
|
||||
|
||||
Reference in New Issue
Block a user