Represents the set of read-only sensors available on certain devices.
More...
The okCDeviceSensors class is a container and accessor for multiple device sensors that are retrieved from the device (via the okCFrontPanel::GetDeviceSensors method). Each call to okCFrontPanel::GetDeviceSensors resets the list of sensors contained in this class. The sensors may then be individually retrieved by the okCDeviceSensors::GetSensor method.
◆ GetSensor()
- Parameters
-
[in] | index | - Index of the sensor to retrieve. |
- Returns
- okTDeviceSensor - A sensor structure.
Use this method to retrieve a single sensor at a particular index. This index can be from 0 to N-1 where N is the number of sensors returned by GetSensorCount().
◆ GetSensorCount()
int okCDeviceSensors::GetSensorCount |
( |
| ) |
const |
|
inline |
- Returns
- int - Number of sensors
When okCFrontPanel::GetDeviceSensors is called, it fills an instance of okCDeviceSensors with the available sensors from the device. This method is used to get the sensor count so they may be queried using the GetSensor method.