Interface for an object that can wrap/or "attach" to another. More...
#include <yarp/dev/IWrapper.h>
Public Member Functions | |
virtual | ~IWrapper () |
Destructor. More... | |
virtual bool | attach (PolyDriver *poly)=0 |
Attach to another object. More... | |
virtual bool | detach ()=0 |
Detach the object (you must have first called attach). More... | |
Interface for an object that can wrap/or "attach" to another.
This is useful for example when an object refers internally to another device, but you want to decouple the creation of the two objects. In this case you first creates the two objects separately then you can attach one to the other.
Definition at line 28 of file IWrapper.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Attach to another object.
poly | the polydriver that you want to attach to. |
Implemented in ServerInertial, ServerGrabber, RGBDSensorWrapper, and JoypadControlServer.
|
pure virtual |
Detach the object (you must have first called attach).
Implemented in ServerInertial, ServerGrabber, RGBDSensorWrapper, and JoypadControlServer.