20 if (!driver || !driver->
isValid()) {
21 yCError(WRAPPERSINGLE,
"Could not attach an invalid device");
26 drivers.
push(driver,
"...");
virtual bool attachAll(const PolyDriverList &drivers)=0
Attach to a list of objects.
void push(PolyDriver *p, const char *k)
A container for a device driver.
bool isValid() const
Check if device is valid.
bool attach(PolyDriver *driver) final
Attach to another object.
bool detach() final
Detach the object (you must have first called attach).
~WrapperMultiple() override
Destructor.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)