Collect hints for finding a particular plugin.
More...
#include <yarp/os/YarpPluginSettings.h>
Collect hints for finding a particular plugin.
Definition at line 24 of file YarpPluginSettings.h.
◆ YarpPluginSettings()
yarp::os::YarpPluginSettings::YarpPluginSettings |
( |
| ) |
|
|
inline |
◆ getBaseClassName()
std::string yarp::os::YarpPluginSettings::getBaseClassName |
( |
| ) |
const |
|
inline |
◆ getClassName()
std::string yarp::os::YarpPluginSettings::getClassName |
( |
| ) |
const |
|
inline |
◆ getLibraryName()
std::string yarp::os::YarpPluginSettings::getLibraryName |
( |
| ) |
const |
|
inline |
◆ getMethodName()
std::string yarp::os::YarpPluginSettings::getMethodName |
( |
| ) |
const |
|
inline |
◆ getPluginName()
std::string yarp::os::YarpPluginSettings::getPluginName |
( |
| ) |
const |
|
inline |
◆ getSelector()
◆ getWrapperName()
std::string yarp::os::YarpPluginSettings::getWrapperName |
( |
| ) |
const |
|
inline |
◆ open()
Initialize a factory object based on the hints available.
- Parameters
-
factory | the factory to initialize |
- Returns
- true on success
Definition at line 83 of file YarpPlugin.cpp.
◆ readFromSearchable()
bool yarp::os::YarpPluginSettings::readFromSearchable |
( |
Searchable & |
options, |
|
|
const std::string & |
name |
|
) |
| |
|
inline |
Configure settings from a configuration file or other searchable object.
- Parameters
-
options | configuration object to read from |
name | fallback name for plugin if not in configuration |
- Returns
- true on success
Definition at line 119 of file YarpPluginSettings.h.
◆ reportFailure()
void YarpPluginSettings::reportFailure |
( |
| ) |
const |
Give a human-readable failure-to-load report, summarizing the active hints.
Definition at line 188 of file YarpPlugin.cpp.
◆ reportStatus()
Give a human-readable report of the status of a factory.
- Parameters
-
factory | the factory about which to report |
Definition at line 157 of file YarpPlugin.cpp.
◆ setClassInfo()
void yarp::os::YarpPluginSettings::setClassInfo |
( |
const std::string & |
class_name, |
|
|
const std::string & |
baseclass_name |
|
) |
| |
|
inline |
Set the information about the class and the base class constructed by this plugin.
- Parameters
-
class_name | the name of the class |
baseclass_name | the name of the base class |
Definition at line 73 of file YarpPluginSettings.h.
◆ setLibraryMethodName()
void yarp::os::YarpPluginSettings::setLibraryMethodName |
( |
const std::string & |
dll_name, |
|
|
const std::string & |
fn_name |
|
) |
| |
|
inline |
Set the name of the library to load and the method name to use as a factory.
The library can include a complete path, or be left to the operating system to find according to the regular search path for libraries. Prefixes and suffixes such as "lib", ".dll", ".so", ".dylib" may be omitted.
- Parameters
-
dll_name | the name of the shared library to load |
fn_name | the name of the method within that library to use as a factory |
Definition at line 47 of file YarpPluginSettings.h.
◆ setPluginName()
void yarp::os::YarpPluginSettings::setPluginName |
( |
const std::string & |
name | ) |
|
|
inline |
Set the name of the plugin to load.
If a corresponding YARP configuration file can be found, this may be a sufficient hint for YARP to fill in everything else.
- Parameters
-
name | the name of the plugin to load |
Definition at line 61 of file YarpPluginSettings.h.
◆ setSelector()
Use a selector to find a plugin or plugins.
If the name of the plugin has already been set, the selector will be used to increase what is known about the plugin.
- Parameters
-
- Returns
- true if a section about the plugin was found
Definition at line 90 of file YarpPluginSettings.h.
◆ setVerboseMode()
void YarpPluginSettings::setVerboseMode |
( |
bool |
verbose | ) |
|
Should messages be printed showing what searches YARP is trying out?
- Parameters
-
- Deprecated:
- since YARP 3.4
Definition at line 34 of file YarpPlugin.cpp.
The documentation for this class was generated from the following files: