MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / getStructNames

Method getStructNames

Source/Structs/StructTreeNode.cpp:242–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242QVector<QString> StructTreeNode::getStructNames(bool includeGroups, QString prefix)
243{
244 QVector<QString> names;
245
246 if (prefix == QString() && m_parent)
247 prefix = m_parent->getNameSpace();
248
249 QString nodeName = QString();
250 if (getParent() != nullptr)
251 {
252 if (prefix.isEmpty())
253 nodeName = getName();
254 else
255 nodeName = appendNameToNameSpace(prefix);
256 }
257
258 if (getParent() != nullptr && (!m_isGroup || includeGroups))
259 names.push_back(nodeName);
260
261 for (StructTreeNode* child : m_children)
262 {
263 QVector<QString> childNames = child->getStructNames(includeGroups, nodeName);
264 for (QString name : childNames)
265 {
266 names.push_back(name);
267 }
268 }
269
270 return names;
271}
272
273QString StructTreeNode::getNameSpace()
274{

Callers 5

onWatchDoubleClickedMethod · 0.80
onAddWatchEntryMethod · 0.80
addByteIndexAsWatchMethod · 0.80
createNewFieldEntryMethod · 0.80
editFieldEntryMethod · 0.80

Calls 1

getNameSpaceMethod · 0.80

Tested by

no test coverage detected