device_hub class - encapsulate the handling of connect and disconnect events
Definition at line 224 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
Public Member Functions | |
| device_hub (context ctx) | |
| device | wait_for_device () const |
| If any device is connected return it, otherwise wait until next RealSense device connects. More... | |
| bool | is_connected (const device &dev) const |
| Checks if device is still connected. More... | |
| operator std::shared_ptr< rs2_device_hub > () | |
| device_hub (std::shared_ptr< rs2_device_hub > hub) | |
| device_hub (context ctx) | |
| device | wait_for_device () const |
| If any device is connected return it, otherwise wait until next RealSense device connects. More... | |
| bool | is_connected (const device &dev) const |
| Checks if device is still connected. More... | |
| operator std::shared_ptr< rs2_device_hub > () | |
| device_hub (std::shared_ptr< rs2_device_hub > hub) | |
|
inlineexplicit |
Definition at line 227 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
References rs2::context::_context, rs2::error::handle(), rs2_create_device_hub(), and rs2_delete_device_hub().
|
inlineexplicit |
Definition at line 267 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
|
inlineexplicit |
Definition at line 227 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
References rs2::error::handle(), rs2_create_device_hub(), and rs2_delete_device_hub().
|
inlineexplicit |
Definition at line 267 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
|
inline |
Checks if device is still connected.
Definition at line 256 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_device_hub_is_device_connected().
|
inline |
Checks if device is still connected.
Definition at line 256 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_device_hub_is_device_connected().
|
inlineexplicit |
Definition at line 266 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
|
inlineexplicit |
Definition at line 266 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
|
inline |
If any device is connected return it, otherwise wait until next RealSense device connects.
Calling this method multiple times will cycle through connected devices
Definition at line 240 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
References rs2::error::handle(), rs2_delete_device(), and rs2_device_hub_wait_for_device().
|
inline |
If any device is connected return it, otherwise wait until next RealSense device connects.
Calling this method multiple times will cycle through connected devices
Definition at line 240 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.
References rs2::error::handle(), rs2_delete_device(), and rs2_device_hub_wait_for_device().