|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_OS_YARPPLUGIN_H
10 #define YARP_OS_YARPPLUGIN_H
68 if (!settings.
open(*factory)) {
73 this->settings = settings;
104 return (factory !=
nullptr);
191 #endif // YARP_OS_YARPPLUGIN_H
void destroy(T *obj) const
bool close()
End this use of the plugin.
bool open(YarpPluginSettings &settings)
Load a library and prepare an object factory, based on the hints supplied.
int removeRef()
Decrement the reference count of this factory.
void reportStatus(SharedLibraryFactory &factory) const
Give a human-readable report of the status of a factory.
SharedLibraryClassFactory< T > * getFactory() const
std::string getName() const
Get the name associated with this factory.
T * create()
Create an object using the plugin.
std::string getBaseClassName()
void destroy(T *obj)
Destroy an object previously created using the plugin.
virtual ~YarpPlugin()
Destructor.
bool open(SharedLibraryFactory &factory)
Initialize a factory object based on the hints available.
int getReferenceCount() const
Get the current reference count of this factory.
std::string getClassName() const
Get the type associated with this factory.
std::string getClassName()
Collect hints for finding a particular plugin.
A type-safe wrapper for SharedLibraryFactory, committing to creation/destruction of instances of a pa...
Type-safe access to a plugin.
std::string getBaseClassName() const
Get the base type associated with this factory.
The main, catch-all namespace for YARP.
Container for an object created using a factory provided by a shared library.