Skip to content
Snippets Groups Projects
Commit f3db5e94 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add findAllObjectsByDataset()

parent e3e69ca1
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,18 @@ namespace armarx
return objects;
}
std::map<std::string, std::vector<ObjectInfo>>
ObjectFinder::findAllObjectsByDataset(bool checkPaths) const
{
// init(); // Done by called methods.
std::map<std::string, std::vector<ObjectInfo>> objects;
for (const std::string& dataset : getDatasets())
{
objects[dataset] = findAllObjectsOfDataset(dataset, checkPaths);
}
return objects;
}
std::vector<ObjectInfo> ObjectFinder::findAllObjectsOfDataset(const std::string& dataset, bool checkPaths) const
{
init();
......
......@@ -37,6 +37,7 @@ namespace armarx
std::vector<path> getDatasetDirectories() const;
std::vector<ObjectInfo> findAllObjects(bool checkPaths = true) const;
std::map<std::string, std::vector<ObjectInfo>> findAllObjectsByDataset(bool checkPaths = true) const;
std::vector<ObjectInfo> findAllObjectsOfDataset(const std::string& dataset, bool checkPaths = true) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment