Qt Virtual Chart Table (QVCT)
|
Device driver inventory and instantiation class. More...
#include <devices/drivers/CDeviceDriver.hpp>
Public Types | |
enum | EDriver { GPSD_GPS , GPSD_AIS , TCP_SBS1 , UNDEFINED } |
Driver ID. More... | |
Static Public Member Functions | |
static const QMap< EDriver, QString > & | names () |
Returns the list of supported human-readable device driver names. More... | |
static QString | toName (EDriver _eDriver) |
Returns the human-readable name corresponding to the given device driver ID. More... | |
static EDriver | fromName (const QString &_rqsName) |
Returns the device driver ID corresponding to the given human-readable name. More... | |
static const QMap< EDriver, QString > & | codes () |
Returns the list of supported machine-friendly device driver codes. More... | |
static QString | toCode (EDriver _eDriver) |
Returns the machine-friendly code corresponding to the given device driver ID. More... | |
static EDriver | fromCode (const QString &_rqsCode) |
Returns the device driver ID corresponding to the given machine-friendly code. More... | |
static CDevice * | createDevice (const QString &_rqsDeviceName, EDriver _eDriver) |
Create a new device based on the specified driver. More... | |
Static Private Attributes | |
static const CDeviceDriverNames | oDeviceDriverNames |
Container for supported human-readable device driver names. More... | |
static const CDeviceDriverCodes | oDeviceDriverCodes |
Container for supported machine-friendly device driver codes. More... | |
Device driver inventory and instantiation class.
This class lists existing device drivers and allows to create corresponding devices.
Definition at line 38 of file CDeviceDriver.hpp.
Driver ID.
Enumerator | |
---|---|
GPSD_GPS | GPSD daemon (GPS mode) |
GPSD_AIS | GPSD daemon (AIS mode) |
TCP_SBS1 | TCP socket, SBS-1 protocol. |
UNDEFINED | Undefined driver. |
Definition at line 47 of file CDeviceDriver.hpp.
|
static |
Returns the list of supported human-readable device driver names.
Definition at line 38 of file CDeviceDriver.cpp.
|
static |
Returns the human-readable name corresponding to the given device driver ID.
Definition at line 43 of file CDeviceDriver.cpp.
|
static |
Returns the device driver ID corresponding to the given human-readable name.
Definition at line 48 of file CDeviceDriver.cpp.
|
static |
Returns the list of supported machine-friendly device driver codes.
Definition at line 53 of file CDeviceDriver.cpp.
|
static |
Returns the machine-friendly code corresponding to the given device driver ID.
Definition at line 58 of file CDeviceDriver.cpp.
|
static |
Returns the device driver ID corresponding to the given machine-friendly code.
Definition at line 63 of file CDeviceDriver.cpp.
|
static |
Create a new device based on the specified driver.
Definition at line 68 of file CDeviceDriver.cpp.
|
staticprivate |
Container for supported human-readable device driver names.
Definition at line 57 of file CDeviceDriver.hpp.
|
staticprivate |
Container for supported machine-friendly device driver codes.
Definition at line 59 of file CDeviceDriver.hpp.