加入判别是否是需要的Disconnector

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-12-25 21:54:03 +08:00
parent edfb3310f8
commit 432724f3d2
5 changed files with 41 additions and 19 deletions

View File

@@ -47,11 +47,11 @@ bool ElementHashtable::child(QXmlStreamReader &reader)
// pointer=new Compensator(this);
// pointer->parse(reader);
// }
// if(elementName=="Disconnector")
// {
// pointer=new Disconnector(this);
// pointer->parse(reader);
// }
if(elementName=="Disconnector")
{
pointer=new Disconnector(this);
pointer->parse(reader);
}
if(elementName=="PowerTransformer")
{
pointer=new PowerTransformer(this);