20class StubDriverCreator;
83 std::string desc, wrap, code;
99 desc(name), wrap(wrap), code(code)
134 const char *libname,
const char *fnname) :
135 desc(name), wrap(wrap), code(code), libname(libname), fnname(fnname)
191 p.
put(
"device",device);
214 virtual std::string
toString()
const;
242 bool remove(
const char *name);
250 static int yarpdev(
int argc,
char *argv[]);
255#ifndef DOXYGEN_SHOULD_SKIP_THIS
Interface implemented by all device drivers.
A factory for creating driver objects of a particular type.
DriverCreatorOf(const char *name, const char *wrap, const char *code)
Constructor.
std::string getName() const override
Get the common name of the device.
std::string getWrapper() const override
Get the common name of a device that can wrap this one.
std::string toString() const override
Returns a simple description of devices the factory can make.
std::string getCode() const override
Get the name of the C++ class associated with this device.
DeviceDriver * create() const override
Create a device.
A base class for factories that create driver objects.
virtual std::string getName() const =0
Get the common name of the device.
virtual std::string getCode() const =0
Get the name of the C++ class associated with this device.
virtual PolyDriver * owner()
For "links" to other devices.
virtual std::string getWrapper() const =0
Get the common name of a device that can wrap this one.
virtual ~DriverCreator()
Destructor.
virtual std::string toString() const =0
Returns a simple description of devices the factory can make.
virtual DeviceDriver * create() const =0
Create a device.
Global factory for devices.
DeviceDriver * open(const char *device)
Create and configure a device, by name.
A container for a device driver.
A factory for creating driver objects from DLLs / shared libraries.
std::string toString() const override
Returns a simple description of devices the factory can make.
StubDriverCreator(const char *name, const char *wrap, const char *code, const char *libname, const char *fnname)
std::string getCode() const override
Get the name of the C++ class associated with this device.
std::string getName() const override
Get the common name of the device.
std::string getWrapper() const override
Get the common name of a device that can wrap this one.
A class for storing options and configuration information.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
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.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.