Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::device_hub Class Reference

#include <rs_context.hpp>

Public Member Functions

 device_hub (context ctx)
 
device wait_for_device () const
 
bool is_connected (const device &dev) const
 

Detailed Description

device_hub class - encapsulate the handling of connect and disconnect events

Constructor & Destructor Documentation

◆ device_hub()

rs2::device_hub::device_hub ( context  ctx)
inlineexplicit

Member Function Documentation

◆ is_connected()

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

Checks if device is still connected

◆ wait_for_device()

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


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