拓扑解析也完成了,虽然用了一些dirty的方法。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-12-25 11:44:46 +08:00
parent 14476a7939
commit 9a70026cf3
7 changed files with 39 additions and 2 deletions

View File

@@ -37,6 +37,11 @@ bool ElementHashtable::child(QXmlStreamReader &reader)
pointer=new Breaker(this);
pointer->parse(reader);
}
if(elementName=="Substation")
{
pointer=new Substation(this);
pointer->parse(reader);
}
// if(elementName=="Compensator")
// {
// pointer=new Compensator(this);
@@ -80,7 +85,7 @@ bool ElementHashtable::GoPath()
// if(p->getName()=="ACLineSegment"){
// std::cout<<p->getID().toStdString()<<std::endl;
// }
if(p->getName()=="ACLineSegment" && p->getID()=="AC-456491")
if(p->getName()=="ACLineSegment" && p->getID()=="AC-671400")
{
ACLineSegment *ac=static_cast<ACLineSegment *>(p);//BusbarSection也就是线路头节点
QString acTerminal=ac->getTerminalB();