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

Function GetIcon

libs/kml/serdes.cpp:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131BookmarkIcon GetIcon(std::string const & iconName)
132{
133 for (size_t i = 0; i < static_cast<size_t>(BookmarkIcon::Count); ++i)
134 {
135 auto const icon = static_cast<BookmarkIcon>(i);
136 if (iconName == ToString(icon))
137 return icon;
138 }
139 return BookmarkIcon::None;
140}
141
142void SaveStyle(Writer & writer, std::string const & style, std::string_view const & indent)
143{

Callers 1

CharDataMethod · 0.85

Calls 1

ToStringFunction · 0.70

Tested by

no test coverage detected