This class implements an abstract class for hardware devices.
More...
#include <CGenericDevice.h>
|
| | cGenericDevice (unsigned int a_deviceNumber=0) |
| | Constructor of cGenericDevice.
|
| |
| virtual | ~cGenericDevice () |
| | Destructor of cGenericDevice.
|
| |
| virtual bool | open () |
| | This method opens a connection to this device.
|
| |
| virtual bool | close () |
| | This method closes the connection to this device.
|
| |
| bool | isDeviceAvailable () |
| | This method returns true if the device is available for communication, false otherwise.
|
| |
| bool | isDeviceReady () |
| | This method returns true if the connection to the device has been established by calling method open(), false otherwise.
|
| |
|
| static unsigned int | getNumDevices () |
| | This method returns the number of haptic devices available for this class of devices.
|
| |
|
| static bool | openLibraries () |
| | This method opens libraries for this class of devices.
|
| |
| static bool | closeLibraries () |
| | This method closes libraries for this class of devices.
|
| |
|
| bool | m_deviceAvailable |
| | Flag that indicates if the device is available to the computer.
|
| |
| bool | m_deviceReady |
| | Flag that indicates if connection to device was opened successfully by calling method open().
|
| |
| int | m_deviceNumber |
| | Device number ID for this category of devices. Value must be equal or bigger than 0. A value of -1 means that the ID has not yet been defined.
|
| |
This class implements an general interface to communicate with hardware devices. The device can be opened or closed by calling methods open() and close() respectively. A static method getNumDevices() is used to query the number of available devices for its class of devices.
◆ cGenericDevice()
| chai3d::cGenericDevice::cGenericDevice |
( |
unsigned int |
a_deviceNumber = 0 | ) |
|
◆ ~cGenericDevice()
| virtual chai3d::cGenericDevice::~cGenericDevice |
( |
| ) |
|
|
inlinevirtual |
◆ open()
| virtual bool chai3d::cGenericDevice::open |
( |
| ) |
|
|
inlinevirtual |
◆ close()
| virtual bool chai3d::cGenericDevice::close |
( |
| ) |
|
|
inlinevirtual |
◆ isDeviceAvailable()
| bool chai3d::cGenericDevice::isDeviceAvailable |
( |
| ) |
|
|
inline |
◆ isDeviceReady()
| bool chai3d::cGenericDevice::isDeviceReady |
( |
| ) |
|
|
inline |
◆ getNumDevices()
| static unsigned int chai3d::cGenericDevice::getNumDevices |
( |
| ) |
|
|
inlinestatic |
◆ openLibraries()
| static bool chai3d::cGenericDevice::openLibraries |
( |
| ) |
|
|
inlinestaticprotected |
◆ closeLibraries()
| static bool chai3d::cGenericDevice::closeLibraries |
( |
| ) |
|
|
inlinestaticprotected |
◆ m_deviceAvailable
| bool chai3d::cGenericDevice::m_deviceAvailable |
|
protected |
◆ m_deviceReady
| bool chai3d::cGenericDevice::m_deviceReady |
|
protected |
◆ m_deviceNumber
| int chai3d::cGenericDevice::m_deviceNumber |
|
protected |
The documentation for this class was generated from the following files: