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

Method GetTypesThatCanBeAdded

libs/editor/editor_config.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175std::vector<std::string> EditorConfig::GetTypesThatCanBeAdded() const
176{
177 auto const xpathResult = m_document.select_nodes("/comaps/editor/types/type[not(@can_add='no' or @editable='no')]");
178
179 std::vector<std::string> result;
180 for (auto const & xNode : xpathResult)
181 result.emplace_back(xNode.node().attribute("id").value());
182 return result;
183}
184
185void EditorConfig::SetConfig(pugi::xml_document const & doc)
186{

Callers 3

NewFeatureCategoriesMethod · 0.80
UNIT_TESTFunction · 0.80
UNIT_TESTFunction · 0.80

Calls 2

emplace_backMethod · 0.45
valueMethod · 0.45

Tested by 2

UNIT_TESTFunction · 0.64
UNIT_TESTFunction · 0.64