|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_OS_YARPPLUGINSETTINGS_H
10 #define YARP_OS_YARPPLUGINSETTINGS_H
31 wrapper_name(
"unknown")
48 const std::string& fn_name)
50 this->dll_name = dll_name;
51 this->fn_name = fn_name;
74 const std::string& baseclass_name)
76 this->class_name = class_name;
77 this->baseclass_name = baseclass_name;
92 this->selector = &selector;
94 return readFromSelector(name);
99 #ifndef YARP_NO_DEPRECATED // Since YARP 3.4
107 void setVerboseMode(
bool verbose);
108 #endif // YARP_NO_DEPRECATED
129 if (this->name ==
"")
131 this->dll_name = iname;
132 this->fn_name = pname;
133 this->wrapper_name = options.
find(
"wrapper").
toString();
213 void reportFailure()
const;
225 const std::string& dll_name,
226 const std::string& fn_name);
229 const std::string& dll_name,
230 const std::string& fn_name);
232 bool readFromSelector(
const std::string& name);
238 #endif // YARP_OS_YARPPLUGINSELECTOR_H
A base class for nested structures that can be searched.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
bool readFromSearchable(Searchable &options, const std::string &name)
Configure settings from a configuration file or other searchable object.
std::string getClassName() const
Pick out a set of relevant plugins.
std::string getWrapperName() const
bool setSelector(YarpPluginSelector &selector)
Use a selector to find a plugin or plugins.
std::string getPluginName() const
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.
void setPluginName(const std::string &name)
Set the name of the plugin to load.
std::string getLibraryName() const
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
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.
Collect hints for finding a particular plugin.
A wrapper for a named factory method in a named shared library.
std::string getMethodName() const
std::string getBaseClassName() const
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
The main, catch-all namespace for YARP.
YarpPluginSettings()
Constructor.
std::string toString() const override
Return a standard text representation of the content of the object.
YarpPluginSelector * getSelector() const