Intel® RealSense™ Cross Platform API
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
 operator std::shared_ptr< rs2_device_hub > ()
 device_hub (std::shared_ptr< rs2_device_hub > hub)

Detailed Description

device_hub class - encapsulate the handling of connect and disconnect events

Constructor & Destructor Documentation

◆ device_hub() [1/2]

rs2::device_hub::device_hub ( context  ctx)

◆ device_hub() [2/2]

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

Member Function Documentation

◆ is_connected()

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

Checks if device is still connected

◆ operator std::shared_ptr< rs2_device_hub >()

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

◆ wait_for_device()

device rs2::device_hub::wait_for_device ( ) const

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: