NVIDIA DeepStream SDK API Reference

9.2 Release
rs2::device_hub Class Reference

Detailed Description

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)
 

Constructor & Destructor Documentation

◆ device_hub() [1/4]

◆ device_hub() [2/4]

rs2::device_hub::device_hub ( std::shared_ptr< rs2_device_hub >  hub)
inlineexplicit

◆ device_hub() [3/4]

◆ device_hub() [4/4]

rs2::device_hub::device_hub ( std::shared_ptr< rs2_device_hub >  hub)
inlineexplicit

Member Function Documentation

◆ is_connected() [1/2]

bool rs2::device_hub::is_connected ( const device &  dev) const
inline

◆ is_connected() [2/2]

bool rs2::device_hub::is_connected ( const device &  dev) const
inline

◆ operator std::shared_ptr< rs2_device_hub >() [1/2]

rs2::device_hub::operator std::shared_ptr< rs2_device_hub > ( )
inlineexplicit

◆ operator std::shared_ptr< rs2_device_hub >() [2/2]

rs2::device_hub::operator std::shared_ptr< rs2_device_hub > ( )
inlineexplicit

◆ wait_for_device() [1/2]

device rs2::device_hub::wait_for_device ( ) const
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().

◆ wait_for_device() [2/2]

device rs2::device_hub::wait_for_device ( ) const
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().


The documentation for this class was generated from the following file: