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);
A type-safe wrapper for SharedLibraryFactory, committing to creation/destruction of instances of a pa...
void destroy(T *obj) const
Container for an object created using a factory provided by a shared library.
std::string getBaseClassName() const
Get the base type associated with this factory.
int getReferenceCount() const
Get the current reference count of this factory.
std::string getClassName() const
Get the type associated with this factory.
std::string getName() const
Get the name associated with this factory.
int removeRef()
Decrement the reference count of this factory.
Collect hints for finding a particular plugin.
bool open(SharedLibraryFactory &factory)
Initialize a factory object based on the hints available.
void reportStatus(SharedLibraryFactory &factory) const
Give a human-readable report of the status of a factory.
Type-safe access to a plugin.
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.
T * create()
Create an object using the plugin.
void destroy(T *obj)
Destroy an object previously created using the plugin.
std::string getBaseClassName()
std::string getClassName()
virtual ~YarpPlugin()
Destructor.
SharedLibraryClassFactory< T > * getFactory() const
The main, catch-all namespace for YARP.