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

A factory for creating links to a driver that has already been created. More...

#include <yarp/dev/DriverLinkCreator.h>

+ Inheritance diagram for yarp::dev::DriverLinkCreator:

Public Member Functions

 DriverLinkCreator (const std::string &name, PolyDriver &source)
 
virtual ~DriverLinkCreator () override
 
std::string toString () const override
 Returns a simple description of devices the factory can make. More...
 
DeviceDrivercreate () const override
 Create a device. 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...
 
PolyDriverowner () override
 For "links" to other devices. More...
 
void close ()
 
- Public Member Functions inherited from yarp::dev::DriverCreator
virtual ~DriverCreator ()
 Destructor. More...
 

Detailed Description

A factory for creating links to a driver that has already been created.

Definition at line 23 of file DriverLinkCreator.h.

Constructor & Destructor Documentation

◆ DriverLinkCreator()

yarp::dev::DriverLinkCreator::DriverLinkCreator ( const std::string &  name,
PolyDriver source 
)

Definition at line 11 of file DriverLinkCreator.cpp.

◆ ~DriverLinkCreator()

yarp::dev::DriverLinkCreator::~DriverLinkCreator ( )
overridevirtual

Definition at line 17 of file DriverLinkCreator.cpp.

Member Function Documentation

◆ close()

void yarp::dev::DriverLinkCreator::close ( )
inline

Definition at line 66 of file DriverLinkCreator.h.

◆ create()

DeviceDriver* yarp::dev::DriverLinkCreator::create ( ) const
inlineoverridevirtual

Create a device.

Implements yarp::dev::DriverCreator.

Definition at line 39 of file DriverLinkCreator.h.

◆ getCode()

std::string yarp::dev::DriverLinkCreator::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 56 of file DriverLinkCreator.h.

◆ getName()

std::string yarp::dev::DriverLinkCreator::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 46 of file DriverLinkCreator.h.

◆ getWrapper()

std::string yarp::dev::DriverLinkCreator::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 51 of file DriverLinkCreator.h.

◆ owner()

PolyDriver* yarp::dev::DriverLinkCreator::owner ( )
inlineoverridevirtual

For "links" to other devices.

Default implementation returns NULL, which is correct for all real devices talking to hardware.

Returns
the object managing the device.

Reimplemented from yarp::dev::DriverCreator.

Definition at line 61 of file DriverLinkCreator.h.

◆ toString()

std::string yarp::dev::DriverLinkCreator::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 34 of file DriverLinkCreator.h.


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