6#ifndef YARP_OS_YARPPLUGINSELECTOR_H
7#define YARP_OS_YARPPLUGINSELECTOR_H
31 mutable std::mutex mutex;
63 std::lock_guard<std::mutex>
guard(mutex);
73 std::lock_guard<std::mutex>
guard(mutex);
80 static bool checkPlugin(
const std::string& name,
const std::string& type = {})
85 for (
size_t i = 0;
i < lst.
size();
i++) {
A simple collection of objects that can be described and transmitted in a portable way.
size_type size() const
Gets the number of elements in the bottle.
Value & get(size_type index) const
Reads a Value v from a certain part of the list.
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
A base class for nested structures that can be searched.
A single value (typically within a Bottle).
bool check(const std::string &key) const override
Check if there exists a property of the given name.
Pick out a set of relevant plugins.
Bottle getSearchPath() const
Bottle getSelectedPlugins() const
virtual ~YarpPluginSelector()=default
Destructor.
void scan()
Find plugin configuration files, and run [plugin] sections through the select method.
static bool checkPlugin(const std::string &name, const std::string &type={})
Checks if a pluigin of the given type is available.
virtual bool select(Searchable &options)
Determine whether a plugin is of interest.
An interface to the operating system, including Port based communication.