| 459 | } |
| 460 | |
| 461 | std::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 | |
| 485 | std::string FileDataToString(FileData const & fd) |
| 486 | { |
no test coverage detected