RobotFinder.h
Go to the documentation of this file.
1 #pragma once
2 
4 
6 {
7  class RobotFinder : public core::PKFinder
8  {
9 
10  public:
12  static const constexpr auto DEFAULT_DIR_TO_IDS = "robots";
13 
14  RobotFinder(const std::filesystem::path& relDir = DEFAULT_DIR_TO_IDS) :
15  core::PKFinder(relDir)
16  {
17  }
18 
19  bool
20  accept(const std::filesystem::path& idPath) const final
21  {
22  return std::filesystem::is_directory(idPath);
23  }
24 
25  void
27  const std::string& prefix = "pk.finder.robots.") final
28  {
30  }
31  };
32 
33 } // namespace armarx::priorknowledge::robots
armarx::priorknowledge::robots::RobotFinder::accept
bool accept(const std::filesystem::path &idPath) const final
Definition: RobotFinder.h:20
armarx::priorknowledge::robots::RobotFinder
Definition: RobotFinder.h:7
armarx::priorknowledge::core::PKFinder
The ObjectFinder class.
Definition: PKFinder.h:25
armarx::priorknowledge::core::PKFinder::registerPropertyDefinitions
virtual void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix)
Definition: PKFinder.cpp:12
PKFinder.h
armarx::priorknowledge::robots::RobotFinder::RobotFinder
RobotFinder(const std::filesystem::path &relDir=DEFAULT_DIR_TO_IDS)
Definition: RobotFinder.h:14
armarx::priorknowledge::robots
Definition: RobotFinder.cpp:9
armarx::priorknowledge::core::PKFinder::PKFinder
PKFinder(const std::filesystem::path &relDir)
Definition: PKFinder.h:34
armarx::priorknowledge::robots::RobotFinder::DEFAULT_DIR_TO_IDS
static const constexpr auto DEFAULT_DIR_TO_IDS
Definition: RobotFinder.h:12
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::priorknowledge::robots::RobotFinder::registerPropertyDefinitions
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix="pk.finder.robots.") final
Definition: RobotFinder.h:26