MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / listAllEntries

Function listAllEntries

source/MRViewer/MRUITestEngineControl.cpp:142–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142Expected<std::vector<PathedEntry>> listAllEntries( const std::vector<std::string>& rootPath )
143{
144 auto groupEx = findGroup( rootPath );
145 if ( !groupEx )
146 return unexpected( groupEx.error() );
147 const auto& group = **groupEx;
148
149 std::vector<PathedEntry> ret;
150 std::vector<std::string> pathStack = rootPath;
151 for ( const auto& [childName, childEntry] : group.elems )
152 {
153 pathStack.push_back( childName );
154 walkAll( pathStack, childEntry, ret );
155 pathStack.pop_back();
156 }
157 return ret;
158}
159
160Expected<std::string> pressButton( const std::vector<std::string>& path )
161{

Callers 2

mcpToolListAllUiEntriesFunction · 0.85

Calls 6

findGroupFunction · 0.85
walkAllFunction · 0.85
errorMethod · 0.80
push_backMethod · 0.80
pop_backMethod · 0.80
unexpectedFunction · 0.50

Tested by

no test coverage detected