#include <Sensor.hpp>
Definition at line 160 of file Sensor.hpp.
◆ SensorList()
| ob::SensorList::SensorList |
( |
ob_sensor_list_t * | impl | ) |
|
|
inlineexplicit |
◆ ~SensorList()
| ob::SensorList::~SensorList |
( |
| ) |
|
|
inlinenoexcept |
◆ getCount()
| uint32_t ob::SensorList::getCount |
( |
| ) |
const |
|
inline |
Get the number of sensors.
- Returns
- uint32_t The number of sensors.
Definition at line 178 of file Sensor.hpp.
Referenced by count().
◆ getSensorType()
| OBSensorType ob::SensorList::getSensorType |
( |
uint32_t | index | ) |
const |
|
inline |
◆ getSensor() [1/2]
| std::shared_ptr< Sensor > ob::SensorList::getSensor |
( |
uint32_t | index | ) |
const |
|
inline |
Get a sensor by index number.
- Parameters
-
| index | The sensor index. The range is [0, count-1]. If the index exceeds the range, an exception will be thrown. |
- Returns
- std::shared_ptr<Sensor> The sensor object.
Definition at line 204 of file Sensor.hpp.
◆ getSensor() [2/2]
Get a sensor by sensor type.
- Parameters
-
| sensorType | The sensor type to obtain. |
- Returns
- std::shared_ptr<Sensor> A sensor object. If the specified sensor type does not exist, it will return empty.
Definition at line 217 of file Sensor.hpp.
◆ count()
| uint32_t ob::SensorList::count |
( |
| ) |
const |
|
inline |
◆ type()
The documentation for this class was generated from the following file:
- E:/jenkins/workspace/OrbbecSDK/build_sdk/OpenOrbbecSDK/include/libobsensor/hpp/Sensor.hpp