| 173 | } |
| 174 | |
| 175 | std::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 | |
| 185 | void EditorConfig::SetConfig(pugi::xml_document const & doc) |
| 186 | { |