Skip to content

Commit

Permalink
Avoiding vocabulary folders when looking for observations
Browse files Browse the repository at this point in the history
  • Loading branch information
RaresAmbrus committed Apr 26, 2016
1 parent f8a9c4b commit c33eb88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions metaroom_xml_parser/src/simple_summary_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ std::vector<QString> SimpleSummaryParser::listXmlInFolder(QString qrootFolder, i

for(QString childFolder : childFolders)
{
std::vector<QString> childXmls = listXmlInFolder(qrootFolder+childFolder+"/", depth+1);
toRet.insert(toRet.end(),childXmls.begin(), childXmls.end());
if (childFolder.indexOf(QString("vocabulary")) == -1){ // avoid vocabulary tree folders
std::vector<QString> childXmls = listXmlInFolder(qrootFolder+childFolder+"/", depth+1);
toRet.insert(toRet.end(),childXmls.begin(), childXmls.end());
}
}

return toRet;
Expand Down

0 comments on commit c33eb88

Please sign in to comment.