6#ifndef YARP_OS_YARPPLUGINSETTINGS_H
7#define YARP_OS_YARPPLUGINSETTINGS_H
40 const std::string& fn_name)
42 this->dll_name = dll_name;
43 this->fn_name = fn_name;
66 const std::string& baseclass_name)
68 this->class_name = class_name;
69 this->baseclass_name = baseclass_name;
84 this->selector = &selector;
86 return readFromSelector(name);
91#ifndef YARP_NO_DEPRECATED
98 YARP_DEPRECATED_MSG("Use log components instead")
99 void setVerboseMode(
bool verbose);
113 std::string
iname = options.
find(
"library").toString();
114 std::string
pname = options.
find(
"part").toString();
123 if (this->name ==
"") {
126 this->dll_name =
iname;
127 this->fn_name =
pname;
128 this->wrapper_name = options.
find(
"wrapper").toString();
208 void reportFailure()
const;
217 YarpPluginSelector* selector {
nullptr};
219 bool subopen(SharedLibraryFactory& factory,
220 const std::string& dll_name,
221 const std::string& fn_name);
223 bool open(SharedLibraryFactory& factory,
224 const std::string& dll_name,
225 const std::string& fn_name);
227 bool readFromSelector(
const std::string& name);
A mini-server for performing network communication in the background.
A base class for nested structures that can be searched.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
A wrapper for a named factory method in a named shared library.
Pick out a set of relevant plugins.
Collect hints for finding a particular plugin.
bool setSelector(YarpPluginSelector &selector)
Use a selector to find a plugin or plugins.
std::string getLibraryName() const
YarpPluginSettings()=default
Constructor.
void setLibraryMethodName(const std::string &dll_name, const std::string &fn_name)
Set the name of the library to load and the method name to use as a factory.
std::string getClassName() const
YarpPluginSelector * getSelector() const
std::string getWrapperName() const
bool readFromSearchable(Searchable &options, const std::string &name)
Configure settings from a configuration file or other searchable object.
void setPluginName(const std::string &name)
Set the name of the plugin to load.
std::string getMethodName() const
std::string getBaseClassName() const
void setClassInfo(const std::string &class_name, const std::string &baseclass_name)
Set the information about the class and the base class constructed by this plugin.
std::string getPluginName() const
An interface to the operating system, including Port based communication.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.