Public Member Functions | Private Attributes | List of all members
rs2::device_hub Class Reference

#include <rs_context.hpp>

Public Member Functions

 device_hub (context ctx)
 device_hub (std::shared_ptr< rs2_device_hub > hub)
bool is_connected (const device &dev) const
 operator std::shared_ptr< rs2_device_hub > ()
device wait_for_device () const

Private Attributes

std::shared_ptr< rs2_device_hub_device_hub

Detailed Description

device_hub class - encapsulate the handling of connect and disconnect events

Definition at line 224 of file rs_context.hpp.

Constructor & Destructor Documentation

rs2::device_hub::device_hub ( context  ctx)

Definition at line 227 of file rs_context.hpp.

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

Definition at line 267 of file rs_context.hpp.

Member Function Documentation

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

Checks if device is still connected

Definition at line 256 of file rs_context.hpp.

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

Definition at line 266 of file rs_context.hpp.

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

Definition at line 240 of file rs_context.hpp.

Member Data Documentation

std::shared_ptr<rs2_device_hub> rs2::device_hub::_device_hub

Definition at line 269 of file rs_context.hpp.

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

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40