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

#include <rs_context.hpp>

Public Member Functions

 event_information (device_list removed, device_list added)
 
device_list get_new_devices () const
 
bool was_added (const rs2::device &dev) const
 
bool was_removed (const rs2::device &dev) const
 

Private Attributes

device_list _added
 
device_list _removed
 

Detailed Description

Definition at line 13 of file rs_context.hpp.

Constructor & Destructor Documentation

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

Definition at line 16 of file rs_context.hpp.

Member Function Documentation

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 rs_context.hpp.

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 rs_context.hpp.

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 rs_context.hpp.

Member Data Documentation

device_list rs2::event_information::_added
private

Definition at line 64 of file rs_context.hpp.

device_list rs2::event_information::_removed
private

Definition at line 63 of file rs_context.hpp.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Sat Apr 3 2021 02:51:28