45#ifndef CGenericDeviceH
46#define CGenericDeviceH
Implements mathematical constants.
This class implements an abstract class for hardware devices.
Definition CGenericDevice.h:84
virtual bool close()
This method closes the connection to this device.
Definition CGenericDevice.h:108
static bool openLibraries()
This method opens libraries for this class of devices.
Definition CGenericDevice.h:150
static bool closeLibraries()
This method closes libraries for this class of devices.
Definition CGenericDevice.h:153
virtual bool open()
This method opens a connection to this device.
Definition CGenericDevice.h:105
bool isDeviceReady()
This method returns true if the connection to the device has been established by calling method open(...
Definition CGenericDevice.h:114
bool m_deviceReady
Flag that indicates if connection to device was opened successfully by calling method open().
Definition CGenericDevice.h:137
bool isDeviceAvailable()
This method returns true if the device is available for communication, false otherwise.
Definition CGenericDevice.h:111
int m_deviceNumber
Device number ID for this category of devices. Value must be equal or bigger than 0....
Definition CGenericDevice.h:140
static unsigned int getNumDevices()
This method returns the number of haptic devices available for this class of devices.
Definition CGenericDevice.h:124
bool m_deviceAvailable
Flag that indicates if the device is available to the computer.
Definition CGenericDevice.h:134
virtual ~cGenericDevice()
Destructor of cGenericDevice.
Definition CGenericDevice.h:95
Definition CAudioBuffer.cpp:57
const bool C_ERROR
Function returns with an error.
Definition CConstants.h:74
const unsigned int C_MAX_DEVICES
Definition CGenericDevice.h:65
const bool C_SUCCESS
Function returns successfully.
Definition CConstants.h:77