YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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.
 
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).
 

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: