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

Function TrackDataToString

libs/kml/pykmlib/bindings.cpp:430–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430std::string TrackDataToString(TrackData const & t)
431{
432 std::ostringstream out;
433 out << "["
434 << "local_id:" << static_cast<uint32_t>(t.m_localId) << ", "
435 << "name:" << LocalizableStringAdapter::ToString(t.m_name) << ", "
436 << "description:" << LocalizableStringAdapter::ToString(t.m_description) << ", "
437 << "timestamp:" << DebugPrint(t.m_timestamp) << ", "
438 << "layers:" << VectorAdapter<TrackLayer>::ToString(t.m_layers) << ", "
439 << "points_with_altitudes:" << VectorAdapter<geometry::PointWithAltitude>::ToString(t.m_pointsWithAltitudes)
440 << ", "
441 << "visible:" << (t.m_visible ? "True" : "False") << ", "
442 << "nearest_toponyms:" << VectorAdapter<std::string>::ToString(t.m_nearestToponyms) << ", "
443 << "properties:" << PropertiesAdapter::ToString(t.m_properties) << "]";
444 return out.str();
445}
446
447std::string LanguagesListToString(std::vector<int8_t> const & langs)
448{

Callers 1

PrintTypeMethod · 0.85

Calls 2

ToStringFunction · 0.50
DebugPrintFunction · 0.50

Tested by

no test coverage detected