7#ifndef YARP_DEV_DEVICEDRIVER_H
8#define YARP_DEV_DEVICEDRIVER_H
19class DeprecatedDeviceDriver;
56 virtual bool close() {
return true; }
68 virtual std::string
id()
const;
73 virtual void setId(
const std::string&
id);
113#ifndef DOXYGEN_SHOULD_SKIP_THIS
116 Private* mPriv =
nullptr;
Interface implemented by deprecated device drivers.
Interface implemented by all device drivers.
virtual void setId(const std::string &id)
Set the id for this device.
virtual DeviceDriver * getImplementation()
Some drivers are bureaucrats, pointing at others.
DeviceDriver & operator=(DeviceDriver &&other) noexcept=delete
virtual std::string id() const
Return the id assigned to the PolyDriver.
DeviceDriver(const DeviceDriver &other)=delete
virtual bool close()
Close the DeviceDriver.
virtual bool open(yarp::os::Searchable &config)
Open the DeviceDriver.
bool view(T *&x)
Get an interface to the device driver.
DeviceDriver & operator=(const DeviceDriver &other)=delete
DeviceDriver(DeviceDriver &&other) noexcept=delete
A base class for nested structures that can be searched.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.