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

Method Push

libs/kml/serdes.cpp:833–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833bool KmlParser::Push(std::string movedTag)
834{
835 std::string const & tag = m_tags.emplace_back(std::move(movedTag));
836
837 if (tag == kCompilation)
838 {
839 m_categoryData = &m_compilationData;
840 m_compilationData.m_accessRules = m_data.m_categoryData.m_accessRules;
841 }
842 else if (IsProcessTrackTag())
843 {
844 m_geometryType = GEOMETRY_TYPE_LINE;
845 m_geometry.m_lines.emplace_back();
846 m_geometry.m_timestamps.emplace_back();
847 }
848 else if (IsProcessTrackCoord())
849 {
850 m_lastTrackPointsCount = m_geometry.m_lines.back().size();
851 }
852 return true;
853}
854
855void KmlParser::AddAttr(std::string attr, std::string value)
856{

Callers 2

UNIT_TESTFunction · 0.45

Calls 3

backMethod · 0.80
emplace_backMethod · 0.45
sizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36