parent
8bb30a0940
commit
a27b938085
|
|
@ -60,18 +60,7 @@ bool ElementHashtable::child(QXmlStreamReader &reader)
|
|||
|
||||
if(pointer && id!="")
|
||||
{
|
||||
if(this->eleHT.contains(id))
|
||||
{
|
||||
std::cout<<"contain"<<std::endl;
|
||||
}
|
||||
|
||||
this->eleHT[id]=pointer;
|
||||
// std::cout<<id.toStdString()<<std::endl;
|
||||
// std::cout<<this->eleHT[id]->getName().toStdString()<<std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
// std::cout<<elementName.toString().toStdString()<<std::endl;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -86,9 +75,7 @@ bool ElementHashtable::goPath()
|
|||
ite!=keys.end();
|
||||
ite++)
|
||||
{
|
||||
// std::cout<<ite->toStdString()<<std::endl;
|
||||
BasicElementInfo *p=ht[*ite];
|
||||
// std::cout<<p->getName().toStdString()<<std::endl;
|
||||
if(p->getName()=="BusbarSection")
|
||||
{
|
||||
std::cout<<"BusbarSection"<<"\n";
|
||||
|
|
@ -122,9 +109,6 @@ bool ElementHashtable::parse(const QString& xmlPath)
|
|||
}
|
||||
|
||||
}
|
||||
// const QHash<QString,BasicElementInfo*> &ht=this->eleHT;
|
||||
// std::cout<<ht["AC-1300969"]->getName().toString().toStdString()<<std::endl;
|
||||
|
||||
if(reader.hasError())
|
||||
{
|
||||
qDebug()<<reader.errorString()<<"\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue