| 74 | } |
| 75 | |
| 76 | coding::CSVReader::Row HierarchyEntryToCsvRow(HierarchyEntry const & entry) |
| 77 | { |
| 78 | coding::CSVReader::Row row; |
| 79 | row.emplace_back(entry.m_id.ToString()); |
| 80 | std::string parentId; |
| 81 | if (entry.m_parentId) |
| 82 | parentId = (*entry.m_parentId).ToString(); |
| 83 | |
| 84 | row.emplace_back(parentId); |
| 85 | row.emplace_back(strings::to_string(entry.m_depth)); |
| 86 | row.emplace_back(strings::to_string_dac(entry.m_center.x, 7)); |
| 87 | row.emplace_back(strings::to_string_dac(entry.m_center.y, 7)); |
| 88 | row.emplace_back(strings::to_string(classif().GetReadableObjectName(entry.m_type))); |
| 89 | row.emplace_back(strings::to_string(entry.m_name)); |
| 90 | row.emplace_back(strings::to_string(entry.m_country)); |
| 91 | return row; |
| 92 | } |
| 93 | |
| 94 | HierarchyEntry HierarchyEntryFromCsvRow(coding::CSVReader::Row const & row) |
| 95 | { |