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

Method CreateElementAndSetAttributes

libs/editor/server_api.cpp:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void ServerApi06::CreateElementAndSetAttributes(editor::XMLFeature & element) const
71{
72 uint64_t const id = CreateElement(element);
73 element.SetAttribute("id", strings::to_string(id));
74 element.SetAttribute("version", "1");
75}
76
77uint64_t ServerApi06::ModifyElement(editor::XMLFeature const & element) const
78{

Callers 1

UNIT_TESTFunction · 0.80

Calls 2

to_stringFunction · 0.85
SetAttributeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64