用类处理线路阻抗数据。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-12-26 21:21:58 +08:00
parent 45a76228c4
commit 57dc9e9728
9 changed files with 107 additions and 4 deletions

View File

@@ -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;