PKFinder.h
Go to the documentation of this file.
1#pragma once
2
4
7
9{
10 /**
11 * @brief The ObjectFinderInfo class
12 * Specialization of the DatasetFinderInfo with strings as dataset and id types
13 */
14 class PKFinderInfo : public core::FinderInfoBase<std::string>
15 {
17
18 public:
19 using Base::Base;
20 };
21
22 /**
23 * @brief The ObjectFinder class
24 */
25 class PKFinder : public core::FinderBase<std::string, PKFinderInfo>
26 {
28
29 public:
30 static const constexpr auto DEFAULT_PACKAGE = "PriorKnowledgeData";
31
32 using Base::Base;
33
34 PKFinder(const std::filesystem::path& relDir) : Base(DEFAULT_PACKAGE, relDir)
35 {
36 }
37
38 virtual ~PKFinder()
39 {
40 }
41
42 virtual void init();
44 const std::string& prefix);
45
46 bool checkAll() const override;
47
48 bool check(const std::string& id) const override;
49
50 std::optional<PKFinderInfo> find(const std::string& id) const override;
51
52 std::vector<PKFinderInfo> findAll() const override;
53
54 private:
55 std::vector<std::string> ID_BLACKLIST = {"script"};
56 };
57
58} // namespace armarx::priorknowledge::core
The FinderInfoBase class Indicates an into to 'something' of type IDType.
The ObjectFinderInfo class Specialization of the DatasetFinderInfo with strings as dataset and id typ...
Definition PKFinder.h:15
std::vector< PKFinderInfo > findAll() const override
Definition PKFinder.cpp:82
static const constexpr auto DEFAULT_PACKAGE
Definition PKFinder.h:30
virtual void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix)
Definition PKFinder.cpp:12
PKFinder(const std::filesystem::path &relDir)
Definition PKFinder.h:34
std::optional< PKFinderInfo > find(const std::string &id) const override
Definition PKFinder.cpp:69
bool check(const std::string &id) const override
Definition PKFinder.cpp:56
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.