Helper interface for an object that can wrap/or "attach" to a single other device. More...
#include <yarp/dev/WrapperSingle.h>
Public Member Functions | |
~WrapperSingle () override | |
Destructor. | |
bool | attachAll (const yarp::dev::PolyDriverList &drivers) final |
Attach to a list of objects. | |
bool | detachAll () final |
Detach the object (you must have first called attach). | |
Public Member Functions inherited from yarp::dev::IWrapper | |
virtual | ~IWrapper () |
Destructor. | |
virtual bool | attach (PolyDriver *driver)=0 |
Attach to another object. | |
virtual bool | detach ()=0 |
Detach the object (you must have first called attach). | |
Public Member Functions inherited from yarp::dev::IMultipleWrapper | |
virtual | ~IMultipleWrapper () |
Destructor. | |
Helper interface for an object that can wrap/or "attach" to a single other device.
The IWrapper methods should be implemented by the user, but the device can be used also through the IMultipleWrapper interface.
Definition at line 28 of file WrapperSingle.h.
|
overridedefault |
Destructor.
|
finalvirtual |
Attach to a list of objects.
drivers | the polydriver list that you want to attach to. |
Implements yarp::dev::IMultipleWrapper.
Definition at line 18 of file WrapperSingle.cpp.
|
finalvirtual |
Detach the object (you must have first called attach).
Implements yarp::dev::IMultipleWrapper.
Definition at line 34 of file WrapperSingle.cpp.