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

Method Write

libs/kml/serdes.cpp:640–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638} // namespace
639
640void KmlWriter::Write(FileData const & fileData)
641{
642 m_writer << kKmlHeader;
643
644 // Save category.
645 SaveCategoryData(m_writer, fileData.m_categoryData, fileData.m_serverId, &fileData.m_compilationsData);
646
647 // Save bookmarks.
648 for (auto const & bookmarkData : fileData.m_bookmarksData)
649 SaveBookmarkData(m_writer, bookmarkData);
650
651 // Saving tracks.
652 for (auto const & trackData : fileData.m_tracksData)
653 SaveTrackData(m_writer, trackData);
654
655 m_writer << kKmlFooter;
656}
657
658KmlParser::KmlParser(FileData & data)
659 : m_data(data)

Callers 15

SerializeMethod · 0.45
WriteDataMethod · 0.45
UnzipAndMatchFunction · 0.45
UNIT_TESTFunction · 0.45
MakeDiffVersion0Function · 0.45
UNIT_TESTFunction · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
UNIT_TESTFunction · 0.45
SerializeMethod · 0.45

Calls 3

SaveCategoryDataFunction · 0.70
SaveBookmarkDataFunction · 0.70
SaveTrackDataFunction · 0.70

Tested by 8

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
CreateDummyMapFileFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36
UNIT_TESTFunction · 0.36