@@ -1,5 +1,5 @@
|
||||
#include "topologyrecorder.h"
|
||||
//#include <iostream>
|
||||
#include <iostream>
|
||||
#include <QList>
|
||||
TopologyRecorder::TopologyRecorder(const QHash<QString,BasicElementInfo *>& elementHT, const QVector<QString> &FDSet, QObject *parent):eleHT(elementHT),FDSet(FDSet)
|
||||
{
|
||||
@@ -88,6 +88,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// std::cout<<anotherTerminal.toStdString()<<std::endl;
|
||||
this->reachedTerminal[anotherTerminal]=0;
|
||||
Terminal *anotherTerminalP=static_cast<Terminal *>(ht[anotherTerminal]);
|
||||
QString ce;
|
||||
@@ -106,6 +107,8 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
std::cout<<AC->getLength()<<std::endl;
|
||||
std::cout<<AC->getID().toStdString()<<std::endl;
|
||||
terminalA=AC->getTerminalA();
|
||||
terminalB=AC->getTerminalB();
|
||||
foundEle=AC;
|
||||
@@ -203,7 +206,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
}
|
||||
else
|
||||
{
|
||||
// std::cout<<"encounter "<<sfd->getNamingDescription().toStdString()<<std::endl;
|
||||
// std::cout<<"encounter "<<sfd->getNamingDescription().toLocal8Bit().data()<<std::endl;
|
||||
if(!this->isEquipmentNeeded(container))
|
||||
{
|
||||
// std::cout<<"not belong"<<std::endl;
|
||||
@@ -230,6 +233,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
else
|
||||
{
|
||||
// std::cout<<tf->getNamingDescription().toStdString()<<"not belong"<<std::endl;
|
||||
continue;
|
||||
}
|
||||
typ=TopologyRecorder::Type::TF;
|
||||
|
||||
@@ -279,7 +283,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
}
|
||||
else
|
||||
{
|
||||
// std::cout<<"not found cate "<<ce.toStdString()<<std::endl;
|
||||
std::cout<<"not found cate "<<ce.toStdString()<<std::endl;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user