Yet Another Robot Platform
yarp::os::YarpPluginSelector Class Reference

Pick out a set of relevant plugins. More...

#include <yarp/os/YarpPluginSelector.h>

+ Inheritance diagram for yarp::os::YarpPluginSelector:

Detailed Description

Pick out a set of relevant plugins.

Override the select function to define what "relevant" means. The select function will be called with [plugin] sections found in configuration files.

Definition at line 29 of file YarpPluginSelector.h.

Public Member Functions

virtual ~YarpPluginSelector ()
 Destructor. More...
virtual bool select (Searchable &options)
 Determine whether a plugin is of interest. More...
void scan ()
 Find plugin configuration files, and run [plugin] sections through the select method. More...
Bottle getSelectedPlugins () const
Bottle getSearchPath () const

Private Attributes

Bottle plugins
Bottle search_path
Property config
yarp::os::Mutex mutex

Constructor & Destructor Documentation

◆ ~YarpPluginSelector()

virtual yarp::os::YarpPluginSelector::~YarpPluginSelector ( )


Definition at line 41 of file YarpPluginSelector.h.

Member Function Documentation

◆ getSearchPath()

Bottle yarp::os::YarpPluginSelector::getSearchPath ( ) const
possible locations for plugin libraries found in [search] sections.

Definition at line 75 of file YarpPluginSelector.h.

◆ getSelectedPlugins()

Bottle yarp::os::YarpPluginSelector::getSelectedPlugins ( ) const
a list of plugin sections that passed the select method during the last call to scan.

Definition at line 65 of file YarpPluginSelector.h.

◆ scan()

void YarpPluginSelector::scan ( )

Find plugin configuration files, and run [plugin] sections through the select method.

Definition at line 159 of file YarpPlugin.cpp.

◆ select()

virtual bool yarp::os::YarpPluginSelector::select ( Searchable options)

Determine whether a plugin is of interest.

true if plugin is of interest. By default, always returns true.

Reimplemented in yarp::os::Carriers::Private, DriversHelper, and MonitorSelector.

Definition at line 48 of file YarpPluginSelector.h.

Member Data Documentation

◆ config

Property yarp::os::YarpPluginSelector::config

Definition at line 34 of file YarpPluginSelector.h.

◆ mutex

yarp::os::Mutex yarp::os::YarpPluginSelector::mutex

Definition at line 35 of file YarpPluginSelector.h.

◆ plugins

Bottle yarp::os::YarpPluginSelector::plugins

Definition at line 32 of file YarpPluginSelector.h.

◆ search_path

Bottle yarp::os::YarpPluginSelector::search_path

Definition at line 33 of file YarpPluginSelector.h.

The documentation for this class was generated from the following files: