A factory for creating driver objects of a particular type.
More...
#include <yarp/dev/Drivers.h>
|
| DriverCreatorOf (const char *name, const char *wrap, const char *code) |
| Constructor.
|
|
std::string | toString () const override |
| Returns a simple description of devices the factory can make.
|
|
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 | getCode () const override |
| Get the name of the C++ class associated with this device.
|
|
DeviceDriver * | create () const override |
| Create a device.
|
|
virtual | ~DriverCreator () |
| Destructor.
|
|
virtual PolyDriver * | owner () |
| For "links" to other devices.
|
|
template<class T>
class yarp::dev::DriverCreatorOf< T >
A factory for creating driver objects of a particular type.
- Examples
- dev/fake_motor/fake_motor.cpp.
Definition at line 81 of file Drivers.h.
◆ DriverCreatorOf()
Constructor.
Sets up the name by which the device will be known.
- Parameters
-
name | The "common name" of the device. This is the name that will be used when naming the device externally, for example from the command line. |
wrap | The "common name" of another device which can wrap this device up for network access. If there is no such device, use an empty name: "" |
code | The name of a class associated with this device. This is to give the user an entry point into the relevant code documentation. |
Definition at line 98 of file Drivers.h.
◆ create()
◆ getCode()
Get the name of the C++ class associated with this device.
- Returns
- the name of the C++ class associated with this device.
Implements yarp::dev::DriverCreator.
Definition at line 115 of file Drivers.h.
◆ getName()
◆ getWrapper()
Get the common name of a device that can wrap this one.
- Returns
- the common name of the device that can wrap this one for the network.
Implements yarp::dev::DriverCreator.
Definition at line 111 of file Drivers.h.
◆ toString()
Returns a simple description of devices the factory can make.
- Returns
- a description of what this factory makes
Implements yarp::dev::DriverCreator.
Definition at line 103 of file Drivers.h.
The documentation for this class was generated from the following file: