YARP
Yet Another Robot Platform
yarp::dev::IWrapper Class Referenceabstract

#include <yarp/dev/IWrapper.h>

+ Inheritance diagram for yarp::dev::IWrapper:

Detailed Description

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.

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...
 

Constructor & Destructor Documentation

◆ ~IWrapper()

yarp::dev::IWrapper::~IWrapper ( )
virtualdefault

Destructor.

Member Function Documentation

◆ attach()

virtual bool yarp::dev::IWrapper::attach ( PolyDriver poly)
pure virtual

Attach to another object.

Parameters
polythe polydriver that you want to attach to.
Returns
true/false on success failure.

Implemented in ServerGrabber, RGBDSensorWrapper, ServerInertial, and JoypadControlServer.

◆ detach()

virtual bool yarp::dev::IWrapper::detach ( )
pure virtual

Detach the object (you must have first called attach).

Returns
true/false on success failure.

Implemented in ServerGrabber, RGBDSensorWrapper, ServerInertial, and JoypadControlServer.


The documentation for this class was generated from the following files: