NVIDIA DeepStream SDK API Reference

9.2 Release
rs2::event_information Class Reference

Detailed Description

Public Member Functions

 event_information (device_list removed, device_list added)
 
bool was_removed (const rs2::device &dev) const
 check if a specific device was disconnected More...
 
bool was_added (const rs2::device &dev) const
 check if a specific device was added More...
 
device_list get_new_devices () const
 returns a list of all newly connected devices More...
 
 event_information (device_list removed, device_list added)
 
bool was_removed (const rs2::device &dev) const
 check if a specific device was disconnected More...
 
bool was_added (const rs2::device &dev) const
 check if a specific device was added More...
 
device_list get_new_devices () const
 returns a list of all newly connected devices More...
 

Constructor & Destructor Documentation

◆ event_information() [1/2]

rs2::event_information::event_information ( device_list  removed,
device_list  added 
)
inline

◆ event_information() [2/2]

rs2::event_information::event_information ( device_list  removed,
device_list  added 
)
inline

Member Function Documentation

◆ get_new_devices() [1/2]

device_list rs2::event_information::get_new_devices ( ) const
inline

returns a list of all newly connected devices

Returns
the list of all new connected devices

Definition at line 57 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.

◆ get_new_devices() [2/2]

device_list rs2::event_information::get_new_devices ( ) const
inline

returns a list of all newly connected devices

Returns
the list of all new connected devices

Definition at line 57 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.

◆ was_added() [1/2]

bool rs2::event_information::was_added ( const rs2::device &  dev) const
inline

check if a specific device was added

Returns
true if device added, false otherwise

Definition at line 40 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.

References rs2::device::get(), rs2::device_list::get_list(), rs2::error::handle(), and rs2_device_list_contains().

◆ was_added() [2/2]

bool rs2::event_information::was_added ( const rs2::device &  dev) const
inline

check if a specific device was added

Returns
true if device added, false otherwise

Definition at line 40 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.

References rs2::device::get(), rs2::device_list::get_list(), rs2::error::handle(), and rs2_device_list_contains().

◆ was_removed() [1/2]

bool rs2::event_information::was_removed ( const rs2::device &  dev) const
inline

check if a specific device was disconnected

Returns
true if device disconnected, false if device connected

Definition at line 23 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.

References rs2::device::get(), rs2::device_list::get_list(), rs2::error::handle(), and rs2_device_list_contains().

◆ was_removed() [2/2]

bool rs2::event_information::was_removed ( const rs2::device &  dev) const
inline

check if a specific device was disconnected

Returns
true if device disconnected, false if device connected

Definition at line 23 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_context.hpp.

References rs2::device::get(), rs2::device_list::get_list(), rs2::error::handle(), and rs2_device_list_contains().


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