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

Function CategoryDataToString

libs/kml/pykmlib/bindings.cpp:461–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461std::string CategoryDataToString(CategoryData const & c)
462{
463 std::ostringstream out;
464 out << "["
465 << "type:" << CompilationTypeToString(c.m_type) << ", "
466 << "compilation_id:" << c.m_compilationId << ", "
467 << "name:" << LocalizableStringAdapter::ToString(c.m_name) << ", "
468 << "annotation:" << LocalizableStringAdapter::ToString(c.m_annotation) << ", "
469 << "description:" << LocalizableStringAdapter::ToString(c.m_description) << ", "
470 << "image_url:'" << c.m_imageUrl << "', "
471 << "visible:" << (c.m_visible ? "True" : "False") << ", "
472 << "author_name:'" << c.m_authorName << "', "
473 << "author_id:'" << c.m_authorId << "', "
474 << "last_modified:" << DebugPrint(c.m_lastModified) << ", "
475 << "rating:" << c.m_rating << ", "
476 << "reviews_number:" << c.m_reviewsNumber << ", "
477 << "access_rules:" << AccessRulesToString(c.m_accessRules) << ", "
478 << "tags:" << VectorAdapter<std::string>::ToString(c.m_tags) << ", "
479 << "toponyms:" << VectorAdapter<std::string>::ToString(c.m_toponyms) << ", "
480 << "languages:" << LanguagesListToString(c.m_languageCodes) << ", "
481 << "properties:" << PropertiesAdapter::ToString(c.m_properties) << "]";
482 return out.str();
483}
484
485std::string FileDataToString(FileData const & fd)
486{

Callers 2

PrintTypeMethod · 0.85
FileDataToStringFunction · 0.85

Calls 5

CompilationTypeToStringFunction · 0.85
AccessRulesToStringFunction · 0.85
LanguagesListToStringFunction · 0.85
ToStringFunction · 0.50
DebugPrintFunction · 0.50

Tested by

no test coverage detected