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

Method GetEditablePropertiesForTypes

libs/editor/osm_editor.cpp:545–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545EditableProperties Editor::GetEditablePropertiesForTypes(feature::TypesHolder const & types) const
546{
547 editor::TypeAggregatedDescription desc;
548 if (m_config.Get()->GetTypeDescription(types.ToObjectNames(), desc))
549 {
550 return {std::move(desc.m_editableFields), desc.IsNameEditable(), desc.IsAddressEditable(),
551 desc.IsCuisineEditable()};
552 }
553 return {};
554}
555
556bool Editor::HaveMapEditsOrNotesToUpload() const
557{

Callers

nothing calls this directly

Calls 6

GetTypeDescriptionMethod · 0.80
ToObjectNamesMethod · 0.80
IsCuisineEditableMethod · 0.80
GetMethod · 0.45
IsNameEditableMethod · 0.45
IsAddressEditableMethod · 0.45

Tested by

no test coverage detected