7 #ifndef YARP_DEV_DEVICEDRIVER_H
8 #define YARP_DEV_DEVICEDRIVER_H
24 class DeprecatedDeviceDriver;
25 class DeviceResponder;
61 bool close()
override {
return true; }
150 void addUsage(
const char *txt,
const char *explain =
nullptr);
Interface implemented by deprecated device drivers.
Interface implemented by all device drivers.
virtual DeviceDriver * getImplementation()
Some drivers are bureaucrats, pointing at others.
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() override=default
Destructor.
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.
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.
A base class for sources of typed data.
virtual void setReplier(PortReader &reader)=0
If a message is received that requires a reply, use this handler.
virtual void useCallback(TypedReaderCallback< T > &callback)=0
Set an object whose onRead method will be called when data is available.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
The main, catch-all namespace for YARP.