diff --git a/routing/ff_router/ffRouter.cpp b/routing/ff_router/ffRouter.cpp index 87718d270374a7f0f9f01b9a516e30534cc7cae1..e32cd76bddb8728abf9b65dc9a4938363243b3dd 100644 --- a/routing/ff_router/ffRouter.cpp +++ b/routing/ff_router/ffRouter.cpp @@ -322,21 +322,21 @@ bool FFRouter::Init(Building* building) } } - std::ofstream matrixfile; - matrixfile.open("Matrix.txt"); - - for (auto mapItem : _distMatrix) { - matrixfile << mapItem.first.first << " to " << mapItem.first.second << " : " << mapItem.second << "\t via \t" << _pathsMatrix[mapItem.first]; - matrixfile << "\t" << _CroTrByUID.at(mapItem.first.first)->GetID() << " to " << _CroTrByUID.at(mapItem.first.second)->GetID() << "\t via \t"; - matrixfile << _CroTrByUID.at(_pathsMatrix[mapItem.first])->GetID() << std::endl; -// auto sub = _subroomMatrix.at(mapItem.first); -// if (sub) { -// matrixfile << std::string("\tSubroom: UID ") << sub->GetUID() << " (room: " << sub->GetRoomID() << " subroom ID: " << sub->GetSubRoomID() << ")" << std::endl; -// } else { -// matrixfile << std::string("\tSubroom is nullptr") << std::endl; -// } - } - matrixfile.close(); +// std::ofstream matrixfile; +// matrixfile.open("Matrix.txt"); +// +// for (auto mapItem : _distMatrix) { +// matrixfile << mapItem.first.first << " to " << mapItem.first.second << " : " << mapItem.second << "\t via \t" << _pathsMatrix[mapItem.first]; +// matrixfile << "\t" << _CroTrByUID.at(mapItem.first.first)->GetID() << " to " << _CroTrByUID.at(mapItem.first.second)->GetID() << "\t via \t"; +// matrixfile << _CroTrByUID.at(_pathsMatrix[mapItem.first])->GetID() << std::endl; +//// auto sub = _subroomMatrix.at(mapItem.first); +//// if (sub) { +//// matrixfile << std::string("\tSubroom: UID ") << sub->GetUID() << " (room: " << sub->GetRoomID() << " subroom ID: " << sub->GetSubRoomID() << ")" << std::endl; +//// } else { +//// matrixfile << std::string("\tSubroom is nullptr") << std::endl; +//// } +// } +// matrixfile.close(); Log->Write("INFO: \tFF Router Init done."); return true; }