MCPcopy Create free account
hub / github.com/MyGUI/mygui / getValueList

Method getValueList

Tools/EditorFramework/SettingsManager.cpp:116–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 SettingsManager::VectorString SettingsManager::getValueList(std::string_view _path)
117 {
118 SettingsManager::VectorString result;
119 std::string path{_path};
120 path += "/Value";
121
122 pugi::xpath_node_set nodes = mUserDocument->document_element().select_nodes(path.data());
123 if (!nodes.empty())
124 {
125 for (const auto& node : nodes)
126 result.emplace_back(node.node().child_value());
127 }
128 else
129 {
130 nodes = mDocument->document_element().select_nodes(path.data());
131 for (const auto& node : nodes)
132 result.emplace_back(node.node().child_value());
133 }
134
135 return result;
136 }
137
138 void SettingsManager::mergeNodes(pugi::xml_node _nodeTarget, pugi::xml_node _nodeSource)
139 {

Callers 15

loadSettingsMethod · 0.80
loadSettingsMethod · 0.80
LoadStatesMethod · 0.80
LoadGuiSettingsMethod · 0.80
CreateControlsMethod · 0.80
loadSettingsMethod · 0.80
loadSettingsMethod · 0.80
LoadStatesMethod · 0.80
LoadGuiSettingsMethod · 0.80
CreateControlsMethod · 0.80
loadSettingsMethod · 0.80

Calls 6

select_nodesMethod · 0.45
document_elementMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45
child_valueMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected