YARP
Yet Another Robot Platform
yarp::dev::WrapperMultiple Class Reference

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. More...
 
bool attach (PolyDriver *driver) final
 Attach to another object. More...
 
bool detach () final
 Detach the object (you must have first called attach). More...
 
- Public Member Functions inherited from yarp::dev::IWrapper
virtual ~IWrapper ()
 Destructor. More...
 
virtual bool attach (PolyDriver *driver)=0
 Attach to another object. More...
 
virtual bool detach ()=0
 Detach the object (you must have first called attach). More...
 
- Public Member Functions inherited from yarp::dev::IMultipleWrapper
virtual ~IMultipleWrapper ()
 Destructor. More...
 
virtual bool attachAll (const PolyDriverList &drivers)=0
 Attach to a list of objects. More...
 
virtual bool detachAll ()=0
 Detach the object (you must have first called attach). More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~WrapperMultiple()

yarp::dev::WrapperMultiple::~WrapperMultiple ( )
overridedefault

Destructor.

Member Function Documentation

◆ attach()

bool yarp::dev::WrapperMultiple::attach ( PolyDriver driver)
finalvirtual

Attach to another object.

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

Implements yarp::dev::IWrapper.

Definition at line 18 of file WrapperMultiple.cpp.

◆ detach()

bool yarp::dev::WrapperMultiple::detach ( )
finalvirtual

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

Returns
true/false on success failure.

Implements yarp::dev::IWrapper.

Definition at line 32 of file WrapperMultiple.cpp.


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