@@ -1,5 +1,5 @@
|
||||
#include "elementhashtable.h"
|
||||
//#include <iostream>
|
||||
#include <iostream>
|
||||
ElementHashtable::ElementHashtable(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
@@ -12,12 +12,12 @@ bool ElementHashtable::child(QXmlStreamReader &reader)
|
||||
QStringRef elementName;
|
||||
elementName=reader.name();
|
||||
BasicElementInfo *pointer=NULL;
|
||||
if(elementName.toString()=="SubControlArea")
|
||||
{
|
||||
SubControlArea sa;
|
||||
pointer=&sa;
|
||||
sa.parse(reader);
|
||||
}
|
||||
// if(elementName.toString()=="SubControlArea")
|
||||
// {
|
||||
// SubControlArea sa;
|
||||
// pointer=&sa;
|
||||
// sa.parse(reader);
|
||||
// }
|
||||
|
||||
if(pointer)
|
||||
{
|
||||
@@ -49,7 +49,7 @@ bool ElementHashtable::parse(const QString& xmlPath)
|
||||
}
|
||||
loop++;
|
||||
if(loop>20){
|
||||
break;
|
||||
// break;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -60,6 +60,5 @@ bool ElementHashtable::parse(const QString& xmlPath)
|
||||
}
|
||||
xmlFile.close();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user