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

Method GetLocalizedType

libs/indexer/map_object.cpp:109–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::string MapObject::GetLocalizedType() const
110{
111 ASSERT(!m_types.Empty(), ());
112 feature::TypesHolder copy(m_types);
113 copy.SortBySpec();
114
115 return localisation::TranslatedFeatureType(classif().GetReadableObjectName(copy.GetBestType()));
116}
117
118std::string MapObject::GetLocalizedAllTypes(bool withMainType) const
119{

Callers

nothing calls this directly

Calls 6

ASSERTFunction · 0.85
TranslatedFeatureTypeFunction · 0.85
SortBySpecMethod · 0.80
GetReadableObjectNameMethod · 0.80
EmptyMethod · 0.45
GetBestTypeMethod · 0.45

Tested by

no test coverage detected