6 #ifndef YARP_OS_YARPPLUGINSETTINGS_H
7 #define YARP_OS_YARPPLUGINSETTINGS_H
41 const std::string& fn_name)
43 this->dll_name = dll_name;
44 this->fn_name = fn_name;
67 const std::string& baseclass_name)
69 this->class_name = class_name;
70 this->baseclass_name = baseclass_name;
85 this->selector = &selector;
87 return readFromSelector(name);
92 #ifndef YARP_NO_DEPRECATED
99 YARP_DEPRECATED_MSG("Use log components instead")
100 void setVerboseMode(
bool verbose);
124 if (this->name ==
"") {
127 this->dll_name = iname;
128 this->fn_name = pname;
129 this->wrapper_name = options.
find(
"wrapper").
toString();
209 void reportFailure()
const;
218 YarpPluginSelector* selector {
nullptr};
220 bool subopen(SharedLibraryFactory& factory,
221 const std::string& dll_name,
222 const std::string& fn_name);
224 bool open(SharedLibraryFactory& factory,
225 const std::string& dll_name,
226 const std::string& fn_name);
228 bool readFromSelector(
const std::string& name);
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.
std::string toString() const override
Return a standard text representation of the content of the object.
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
std::string getWrapperName() const
bool readFromSearchable(Searchable &options, const std::string &name)
Configure settings from a configuration file or other searchable object.
YarpPluginSelector * getSelector() const
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
The main, catch-all namespace for YARP.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.