ObjectFinder.h
Go to the documentation of this file.
1#pragma once
2
4
6{
7 /**
8 * @brief The ObjectFinder class
9 * TODO (fabian.peller): Merge with ArmarXObjects object finder!
10 */
12 {
13 public:
15 static const constexpr auto DEFAULT_DIR_TO_DATASETS = "objects";
16
17 ObjectFinder(const std::filesystem::path& relDir = DEFAULT_DIR_TO_DATASETS) :
18 core::PKDatasetFinder(relDir)
19 {
20 }
21
22 bool
23 accept(const std::filesystem::path& idPath) const final
24 {
25 return std::filesystem::is_directory(idPath);
26 }
27
28 void
30 const std::string& prefix = "pk.finder.objects.") final
31 {
33 }
34 };
35
36} // namespace armarx::priorknowledge::objects
virtual void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix)
PKDatasetFinder(const std::filesystem::path &relDir)
ObjectFinder(const std::filesystem::path &relDir=DEFAULT_DIR_TO_DATASETS)
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix="pk.finder.objects.") final
bool accept(const std::filesystem::path &idPath) const final
static const constexpr auto DEFAULT_DIR_TO_DATASETS
PKDatasetFinder(const std::filesystem::path &relDir)
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.