90 const std::string &className, std::map<std::string, std::string> &
pmap,
92 if (!rootPath.empty()) {
93 pmap.emplace(rootPath, className);
96 auto dirents = file.getEntries();
97 auto itend = dirents.end();
98 for (
auto it = dirents.begin(); it != itend; ++it) {
99 const std::string &entryName = it->first;
100 const std::string &entryClass = it->second;
101 const std::string entryPath = std::string(rootPath).append(
"/").append(entryName);
102 if (entryClass ==
"SDS" || entryClass ==
"ILL_data_scan_vars" || entryClass ==
"NXill_data_scan_vars") {
103 pmap.emplace(entryPath, entryClass);
104 }
else if (entryClass ==
"CDF0.0") {
109 if (!entryClass.empty()) {
110 file.openGroup(entryName, entryClass);
void walkFile(Mantid::LegacyNexus::File &file, const std::string &rootPath, const std::string &className, std::map< std::string, std::string > &pmap, int level)
Walk the tree and cache the structure.