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

Method Delete

libs/editor/changeset_wrapper.cpp:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void ChangesetWrapper::Delete(editor::XMLFeature node)
276{
277 if (m_changesetId == kInvalidChangesetId)
278 m_changesetId = m_api.CreateChangeSet(m_changesetComments);
279
280 // Changeset id should be updated for every OSM server commit.
281 node.SetAttribute("changeset", strings::to_string(m_changesetId));
282 m_api.DeleteElement(node);
283 m_deleted_types[GetTypeForFeature(node)]++;
284}
285
286std::string ChangesetWrapper::TypeCountToString(TypeCount const & typeCount)
287{

Callers 1

UploadChangesMethod · 0.45

Calls 5

to_stringFunction · 0.85
GetTypeForFeatureFunction · 0.85
CreateChangeSetMethod · 0.80
DeleteElementMethod · 0.80
SetAttributeMethod · 0.45

Tested by

no test coverage detected