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

Function GetBookmarkBaseType

libs/map/bookmark_helpers.cpp:668–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668BookmarkBaseType GetBookmarkBaseType(std::vector<uint32_t> const & featureTypes)
669{
670 auto const & c = classif();
671 for (auto typeIndex : featureTypes)
672 {
673 auto const type = c.GetTypeForIndex(typeIndex);
674 auto typeStr = c.GetReadableObjectName(type);
675
676 do
677 {
678 auto const itType = kFeatureTypeToBookmarkMatchInfo.find(typeStr);
679 if (itType != kFeatureTypeToBookmarkMatchInfo.cend())
680 return itType->second.m_type;
681 }
682 while (TruncType(typeStr));
683 }
684 return BookmarkBaseType::None;
685}
686
687kml::BookmarkIcon GetBookmarkIconByFeatureType(uint32_t type)
688{

Callers 2

SortBookmarkDataMethod · 0.85

Calls 5

TruncTypeFunction · 0.85
GetReadableObjectNameMethod · 0.80
GetTypeForIndexMethod · 0.45
findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected