blob: b4adc915a4fc268e56c20522211738c33eb0ce58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "routing/road_access.hpp"
#include <sstream>
namespace routing
{
std::string DebugPrint(RoadAccess const & r)
{
size_t const kMaxIdsToShow = 10;
std::ostringstream oss;
oss << "RoadAccess: Private roads [";
auto const & privateRoads = r.GetPrivateRoads();
for (size_t i = 0; i < privateRoads.size(); ++i)
{
if (i == kMaxIdsToShow)
{
oss << "...";
break;
}
if (i > 0)
oss << " ";
oss << privateRoads[i];
}
oss << "]";
return oss.str();
}
} // namespace routing
|