YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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 std::string &name, const std::string &wrap, const std::string &code, const std::string &libname, const std::string &fnname)
 
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.
 
- Public Member Functions inherited from yarp::dev::DriverCreator
virtual ~DriverCreator ()
 Destructor.
 
virtual PolyDriver * owner ()
 For "links" to other devices.
 

Detailed Description

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

Definition at line 129 of file Drivers.h.

Constructor & Destructor Documentation

◆ StubDriverCreator()

yarp::dev::StubDriverCreator::StubDriverCreator ( const std::string &  name,
const std::string &  wrap,
const std::string &  code,
const std::string &  libname,
const std::string &  fnname 
)
inline

Definition at line 133 of file Drivers.h.

Member Function Documentation

◆ create()

DeviceDriver * StubDriverCreator::create ( ) const
overridevirtual

Create a device.

Implements yarp::dev::DriverCreator.

Definition at line 646 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 151 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 143 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 147 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 139 of file Drivers.h.


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