#include <Sensor.hpp>
Definition at line 111 of file Sensor.hpp.
ob::SensorList::SensorList |
( |
std::unique_ptr< SensorListImpl > |
impl | ) |
|
virtual ob::SensorList::~SensorList |
( |
| ) |
|
|
virtualnoexcept |
uint32_t ob::SensorList::count |
( |
| ) |
|
Get sensor count.
- Returns
- uint32_t returns the number of Sensors
Get the type of the specified Sensor.
- Parameters
-
- Returns
- OBSensorType returns the Sensor type
std::shared_ptr<Sensor> ob::SensorList::getSensor |
( |
uint32_t |
index | ) |
|
Get Sensor by index number.
- Parameters
-
index | To create a device cable, the range is [0, count-1], if the index exceeds the range, an exception will be thrown |
- Returns
- std::shared_ptr<Sensor> returns the Sensor object
Obtain the Sensor through the Sensor type.
- Parameters
-
sensorType | Sensor type to be obtained |
- Returns
- std::shared_ptr<Sensor> returns a Sensor object, if the specified type of Sensor does not exist, it will return empty
The documentation for this class was generated from the following file:
- /root/libobsensor/include/libobsensor/hpp/Sensor.hpp