| Tipro API Communicate with Tipro devices

TiproHidLinux.h
Go to the documentation of this file.
1
128 #ifndef _TIPRO_TIPROHIDAPI_TIPROHIDLINUX_H_
129 #define _TIPRO_TIPROHIDAPI_TIPROHIDLINUX_H_
130
131 #include <vector>
132 #include "TiproHidDevice.h"
133
139 class TiproHid
140 {
141 public:
142
146 TiproHid();
147
151 virtual ~TiproHid();
152
157 virtual int Enumerate();
158
163 virtual unsigned int Count();
164
170 virtual TiproHidDevice* GetDevice(unsigned int index);
171
177 virtual TiproHidDevice* GetTiproHidDevice(hid_device *device);
178
179 private:
180 std::vector<TiproHidDevice> _devices; //holds enumerated TiproHidDevice objects
181 };
182
183 #endif
TiproHidDevice.h
Represents Tipro device.
TiproHid
Definition: TiproHidLinux.h:139
TiproHid::~TiproHid
virtual ~TiproHid()
Destructor.
TiproHid::Enumerate
virtual int Enumerate()
Detects available Tipro devices.
TiproHid::Count
virtual unsigned int Count()
Returns number of found devices.
TiproHid::GetDevice
virtual TiproHidDevice * GetDevice(unsigned int index)
Returns a device by index.
TiproHid::GetTiproHidDevice
virtual TiproHidDevice * GetTiproHidDevice(hid_device *device)
Returns a device by hid_device handle.
TiproHidDevice
Definition: TiproHidDevice.h:32
TiproHid::TiproHid
TiproHid()
Constructor.