|
OrbbecSDK 2.8.6
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
Class representing a list of devices. More...
#include <Device.hpp>
Public Member Functions | |
| DeviceList (ob_device_list_t *impl) | |
| ~DeviceList () noexcept | |
| uint32_t | getCount () const |
| Get the number of devices in the list. | |
| int | getPid (uint32_t index) const |
| Get the PID of the device at the specified index. | |
| int | getVid (uint32_t index) const |
| Get the VID of the device at the specified index. | |
| const char * | getUid (uint32_t index) const |
| Get the UID of the device at the specified index. | |
| const char * | getSerialNumber (uint32_t index) const |
| Get the serial number of the device at the specified index. | |
| const char * | getName (uint32_t index) const |
| Get the name of the device at the specified index in the device list. | |
| const char * | getConnectionType (uint32_t index) const |
| Get device connection type. | |
| const char * | getIpAddress (uint32_t index) const |
| get the ip address of the device at the specified index | |
| const char * | getSubnetMask (uint32_t index) const |
| get the subnet mask of the device at the specified index | |
| const char * | getGateway (uint32_t index) const |
| get the gateway of the device at the specified index | |
| const char * | getLocalMacAddress (uint32_t index) const |
| Get the MAC address of the host network interface corresponding to the device at the specified index. | |
| const char * | getLocalIP (uint32_t index) const |
| Get the IP address of the host network interface corresponding to the device at the specified index. | |
| uint8_t | getLocalSubnetLength (uint32_t index) const |
| Get the subnet length of the host network interface corresponding to the device at the specified index. | |
| const char * | getLocalGateway (uint32_t index) const |
| Get the gateway of the host network interface corresponding to the device at the specified index. | |
| const char * | getLocalNetInterfaceName (uint32_t index) const |
| Get the name of the host network interface corresponding to the device at the specified index. | |
| OBIpSourceType | getIpSourceType (uint32_t index) const |
| Get the current IP configuration mode of the device at the specified index. | |
| const char * | getUserName (uint32_t index) const |
| Get the user-defined name of the device at the specified index. | |
| std::shared_ptr< Device > | getDevice (uint32_t index, OBDeviceAccessMode accessMode=OB_DEVICE_DEFAULT_ACCESS) const |
| Get the device object at the specified index. | |
| std::shared_ptr< Device > | getDeviceBySN (const char *serialNumber, OBDeviceAccessMode accessMode=OB_DEVICE_DEFAULT_ACCESS) const |
| Get the device object with the specified serial number. | |
| std::shared_ptr< Device > | getDeviceByUid (const char *uid, OBDeviceAccessMode accessMode=OB_DEVICE_DEFAULT_ACCESS) const |
| Get the specified device object from the device list by uid. | |
| uint32_t | deviceCount () const |
| int | pid (uint32_t index) const |
| int | vid (uint32_t index) const |
| const char * | uid (uint32_t index) const |
| const char * | serialNumber (uint32_t index) const |
| const char * | name (uint32_t index) const |
| const char * | connectionType (uint32_t index) const |
| const char * | ipAddress (uint32_t index) const |
Class representing a list of devices.
Definition at line 1141 of file Device.hpp.
|
inlineexplicit |
Definition at line 1146 of file Device.hpp.
|
inlinenoexcept |
Definition at line 1147 of file Device.hpp.
|
inline |
Get the number of devices in the list.
Definition at line 1158 of file Device.hpp.
Referenced by deviceCount().
|
inline |
Get the PID of the device at the specified index.
| [in] | index | the index of the device |
Definition at line 1172 of file Device.hpp.
Referenced by pid().
|
inline |
Get the VID of the device at the specified index.
| [in] | index | the index of the device |
Definition at line 1186 of file Device.hpp.
Referenced by vid().
|
inline |
Get the UID of the device at the specified index.
| [in] | index | the index of the device |
Definition at line 1200 of file Device.hpp.
Referenced by uid().
|
inline |
Get the serial number of the device at the specified index.
| [in] | index | the index of the device |
Definition at line 1214 of file Device.hpp.
Referenced by serialNumber().
|
inline |
Get the name of the device at the specified index in the device list.
This function retrieves the name of the device at the given index in the device list. If an error occurs during the operation, it will be handled by the Error::handle function.
| [in] | index | The index of the device in the device list. |
Definition at line 1231 of file Device.hpp.
Referenced by name().
|
inline |
Get device connection type.
| [in] | index | device index |
Definition at line 1246 of file Device.hpp.
Referenced by connectionType().
|
inline |
get the ip address of the device at the specified index
| [in] | index | the index of the device |
Definition at line 1262 of file Device.hpp.
Referenced by ipAddress().
|
inline |
get the subnet mask of the device at the specified index
| [in] | index | the index of the device |
Definition at line 1278 of file Device.hpp.
|
inline |
get the gateway of the device at the specified index
| [in] | index | the index of the device |
Definition at line 1294 of file Device.hpp.
|
inline |
Get the MAC address of the host network interface corresponding to the device at the specified index.
| [in] | index | the index of the device |
Definition at line 1310 of file Device.hpp.
|
inline |
Get the IP address of the host network interface corresponding to the device at the specified index.
| [in] | index | The index of the device |
Definition at line 1326 of file Device.hpp.
|
inline |
Get the subnet length of the host network interface corresponding to the device at the specified index.
| [in] | index | The index of the device |
Definition at line 1342 of file Device.hpp.
|
inline |
Get the gateway of the host network interface corresponding to the device at the specified index.
| [in] | index | The index of the device |
Definition at line 1358 of file Device.hpp.
|
inline |
Get the name of the host network interface corresponding to the device at the specified index.
| [in] | index | The index of the device. |
Definition at line 1374 of file Device.hpp.
|
inline |
Get the current IP configuration mode of the device at the specified index.
| [in] | index | The index of the device. |
Definition at line 1390 of file Device.hpp.
|
inline |
Get the user-defined name of the device at the specified index.
| [in] | index | The index of the device. |
Definition at line 1406 of file Device.hpp.
|
inline |
Get the device object at the specified index.
| [in] | index | the index of the device to create |
| [in] | accessMode | Device access mode. ob_device_access_mode. If the device does not support setting the Access Mode, the default OB_DEVICE_DEFAULT_ACCESS is used. Applies only on first device creation or after release and re-creation; subsequent calls ignore it. |
Definition at line 1425 of file Device.hpp.
|
inline |
Get the device object with the specified serial number.
| [in] | serialNumber | the serial number of the device to create |
| [in] | accessMode | Device access mode. ob_device_access_mode. If the device does not support setting the Access Mode, the default OB_DEVICE_DEFAULT_ACCESS is used. Applies only on first device creation or after release and re-creation; subsequent calls ignore it. |
Definition at line 1444 of file Device.hpp.
|
inline |
Get the specified device object from the device list by uid.
On Linux platform, for usb device, the uid of the device is composed of bus-port-dev, for example 1-1.2-1. But the SDK will remove the dev number and only keep the bus-port as the uid to create the device, for example 1-1.2, so that we can create a device connected to the specified USB port. Similarly, users can also directly pass in bus-port as uid to create device.
For GMSL device, the uid is GMSL port with "gmsl2-" prefix, for example gmsl2-1.
| [in] | uid | The uid of the device to be created |
| [in] | accessMode | Device access mode. ob_device_access_mode. If the device does not support setting the Access Mode, the default OB_DEVICE_DEFAULT_ACCESS is used. Applies only on first device creation or after release and re-creation; subsequent calls ignore it. |
Definition at line 1467 of file Device.hpp.
|
inline |
Definition at line 1476 of file Device.hpp.
|
inline |
Definition at line 1480 of file Device.hpp.
Referenced by getPid().
|
inline |
Definition at line 1484 of file Device.hpp.
Referenced by getVid().
|
inline |
Definition at line 1488 of file Device.hpp.
Referenced by getDeviceByUid(), and getUid().
|
inline |
Definition at line 1492 of file Device.hpp.
Referenced by getDeviceBySN().
|
inline |
Definition at line 1496 of file Device.hpp.
Referenced by getName().
|
inline |
Definition at line 1500 of file Device.hpp.
|
inline |
Definition at line 1504 of file Device.hpp.