20 if (drivers.
size() != 1) {
21 yCError(WRAPPERSINGLE,
"Expected only one device to be attached");
25 if (!drivers[0]->poly || !drivers[0]->poly->isValid()) {
26 yCError(WRAPPERSINGLE,
"Could not attach an invalid device");
30 return attach(drivers[0]->poly);
virtual bool attach(PolyDriver *driver)=0
Attach to another object.
~WrapperSingle() override
Destructor.
bool attachAll(const yarp::dev::PolyDriverList &drivers) final
Attach to a list of objects.
bool detachAll() final
Detach the object (you must have first called attach).
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)