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

Method SetInternet

libs/indexer/editable_map_object.cpp:400–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void EditableMapObject::SetInternet(feature::Internet internet)
401{
402 m_metadata.Set(MetadataID::FMD_INTERNET, DebugPrint(internet));
403
404 uint32_t const wifiType = ftypes::IsWifiChecker::Instance().GetType();
405 bool const hasWiFi = m_types.Has(wifiType);
406
407 if (hasWiFi && internet != feature::Internet::Wlan)
408 m_types.Remove(wifiType);
409 else if (!hasWiFi && internet == feature::Internet::Wlan)
410 m_types.SafeAdd(wifiType);
411}
412
413LocalizedStreet const & EditableMapObject::GetStreet() const
414{

Callers 4

OnSaveMethod · 0.80
UNIT_CLASS_TESTFunction · 0.80
UNIT_TESTFunction · 0.80

Calls 6

SafeAddMethod · 0.80
DebugPrintFunction · 0.70
SetMethod · 0.45
GetTypeMethod · 0.45
HasMethod · 0.45
RemoveMethod · 0.45

Tested by 2

UNIT_CLASS_TESTFunction · 0.64
UNIT_TESTFunction · 0.64