MCPcopy Create free account
hub / github.com/comaps/comaps / DebugPrint

Function DebugPrint

libs/indexer/osm_element.cpp:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <sstream>
11
12std::string DebugPrint(OsmElement::EntityType type)
13{
14 switch (type)
15 {
16 case OsmElement::EntityType::Unknown: return "unknown";
17 case OsmElement::EntityType::Bounds: return "bounds";
18 case OsmElement::EntityType::Way: return "way";
19 case OsmElement::EntityType::Tag: return "tag";
20 case OsmElement::EntityType::Relation: return "relation";
21 case OsmElement::EntityType::Osm: return "osm";
22 case OsmElement::EntityType::Node: return "node";
23 case OsmElement::EntityType::Nd: return "nd";
24 case OsmElement::EntityType::Member: return "member";
25 }
26 UNREACHABLE();
27}
28
29namespace
30{

Callers 2

ToStringMethod · 0.70
DebugPrintIDFunction · 0.70

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected