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