@@ -47,6 +47,7 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
terminalA=AC->getTerminalA();
|
||||
terminalB=AC->getTerminalB();
|
||||
std::cout<<"find"<<AC->getID().toStdString()<<std::endl;
|
||||
std::cout<<AC->getLineName().toStdString()<<std::endl;
|
||||
foundCate=true;
|
||||
}
|
||||
if(ce.startsWith("SW"))
|
||||
@@ -69,34 +70,6 @@ bool TopologyRecorder::startWithNode(const QString& node)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// if(ce.startsWith("SW"))
|
||||
// {
|
||||
// foundCate=true;
|
||||
|
||||
// QPair<QString,QString> fromTo;
|
||||
|
||||
// this->branch.push_back(fromTo);
|
||||
|
||||
// QString terminalA;
|
||||
// QString terminalB;
|
||||
|
||||
// // std::cout<<"terminalA"<<terminalA.toStdString()<<std::endl;//@1
|
||||
// // std::cout<<"terminalB"<<terminalB.toStdString()<<std::endl;//@1
|
||||
// QString nextTerminal;
|
||||
// nextTerminal=(terminalA==anotherTerminal)?terminalB:terminalA;
|
||||
// Terminal *nextTerminalP=static_cast<Terminal *>(ht[nextTerminal]);
|
||||
// if(!nextTerminalP)
|
||||
// {
|
||||
// // std::cout<<"can not terminal "<<nextTerminal.toStdString()<<std::endl;//@1
|
||||
// continue;
|
||||
// }
|
||||
// QString nextNode=nextTerminalP->getConnectivityNode();
|
||||
// // std::cout<<"next node"<<nextNode.toStdString()<<"from"<<nextTerminal.toStdString()<<std::endl;//@1
|
||||
// this->startWithNode(nextNode);
|
||||
|
||||
// }
|
||||
|
||||
if(foundCate)
|
||||
{
|
||||
this->branch.push_back(fromTo);
|
||||
|
||||
Reference in New Issue
Block a user