YARP
Yet Another Robot Platform
yarp::dev::StubDriverCreator Class Reference

A factory for creating driver objects from DLLs / shared libraries. More...

#include <yarp/dev/Drivers.h>

+ Inheritance diagram for yarp::dev::StubDriverCreator:

Public Member Functions

 StubDriverCreator (const char *name, const char *wrap, const char *code, const char *libname, const char *fnname)
 
std::string toString () const override
 Returns a simple description of devices the factory can make. More...
 
std::string getName () const override
 Get the common name of the device. More...
 
std::string getWrapper () const override
 Get the common name of a device that can wrap this one. More...
 
std::string getCode () const override
 Get the name of the C++ class associated with this device. More...
 
DeviceDrivercreate () const override
 Create a device. More...
 
- Public Member Functions inherited from yarp::dev::DriverCreator
virtual ~DriverCreator ()
 Destructor. More...
 
virtual PolyDriverowner ()
 For "links" to other devices. More...
 

Detailed Description

A factory for creating driver objects from DLLs / shared libraries.

Definition at line 133 of file Drivers.h.

Constructor & Destructor Documentation

◆ StubDriverCreator()

yarp::dev::StubDriverCreator::StubDriverCreator ( const char *  name,
const char *  wrap,
const char *  code,
const char *  libname,
const char *  fnname 
)
inline

Definition at line 137 of file Drivers.h.

Member Function Documentation

◆ create()

DeviceDriver * StubDriverCreator::create ( ) const
overridevirtual

Create a device.

Implements yarp::dev::DriverCreator.

Definition at line 618 of file Drivers.cpp.

◆ getCode()

std::string yarp::dev::StubDriverCreator::getCode ( ) const
inlineoverridevirtual

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 155 of file Drivers.h.

◆ getName()

std::string yarp::dev::StubDriverCreator::getName ( ) const
inlineoverridevirtual

Get the common name of the device.

Returns
the common name of the device this creates.

Implements yarp::dev::DriverCreator.

Definition at line 147 of file Drivers.h.

◆ getWrapper()

std::string yarp::dev::StubDriverCreator::getWrapper ( ) const
inlineoverridevirtual

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 151 of file Drivers.h.

◆ toString()

std::string yarp::dev::StubDriverCreator::toString ( ) const
inlineoverridevirtual

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 143 of file Drivers.h.


The documentation for this class was generated from the following files: