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