7#ifndef YARP_DEV_DEVICEDRIVER_H
8#define YARP_DEV_DEVICEDRIVER_H
20class DeprecatedDeviceDriver;
59 bool close()
override {
return true; }
71 virtual std::string
id()
const;
76 virtual void setId(
const std::string&
id);
116#ifndef DOXYGEN_SHOULD_SKIP_THIS
119 Private* mPriv =
nullptr;
170 void addUsage(
const char *txt,
const char *explain =
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
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool view(T *&x)
Get an interface to the device driver.
bool close() override
Close the DeviceDriver.
DeviceDriver & operator=(const DeviceDriver &other)=delete
DeviceDriver(DeviceDriver &&other) noexcept=delete
A cheap and cheerful framework for human readable/writable forms of messages to devices.
void onRead(yarp::os::Bottle &v) override
Alternative handler for reading messages from the network, and passing them on to the respond() metho...
void attach(yarp::os::TypedReader< yarp::os::Bottle > &source)
Attach this object to a source of messages.
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
void useCallback(TypedReaderCallback< T > &callback) override
Set an object whose onRead method will be called when data is available.
void setReplier(PortReader &reader) override
If a message is received that requires a reply, use this handler.
An interface for reading from a network connection.
An object that can be configured.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A base class for nested structures that can be searched.
A callback for typed data from a port.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.