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

#include <context.h>

Inheritance diagram for librealsense::context:

Public Member Functions

 context (backend_type type, const char *filename=nullptr, const char *section=nullptr, rs2_recording_mode mode=RS2_RECORDING_MODE_COUNT)
 
void stop ()
 
 ~context ()
 
std::vector< std::shared_ptr< device_info > > query_devices () const
 
const platform::backendget_backend () const
 
uint64_t register_internal_device_callback (devices_changed_callback_ptr callback)
 
void set_devices_changed_callback (devices_changed_callback_ptr callback)
 
void unregister_internal_device_callback (uint64_t cb_id)
 
std::vector< std::shared_ptr< device_info > > create_devices (platform::backend_device_group devices, const std::map< std::string, std::weak_ptr< device_info >> &playback_devices) const
 
std::shared_ptr< device_interfaceadd_device (const std::string &file)
 
void remove_device (const std::string &file)
 

Constructor & Destructor Documentation

§ context()

librealsense::context::context ( backend_type  type,
const char *  filename = nullptr,
const char *  section = nullptr,
rs2_recording_mode  mode = RS2_RECORDING_MODE_COUNT 
)
explicit

§ ~context()

librealsense::context::~context ( )

Member Function Documentation

§ add_device()

std::shared_ptr<device_interface> librealsense::context::add_device ( const std::string &  file)

§ create_devices()

std::vector<std::shared_ptr<device_info> > librealsense::context::create_devices ( platform::backend_device_group  devices,
const std::map< std::string, std::weak_ptr< device_info >> &  playback_devices 
) const

§ get_backend()

const platform::backend& librealsense::context::get_backend ( ) const
inline

§ query_devices()

std::vector<std::shared_ptr<device_info> > librealsense::context::query_devices ( ) const

§ register_internal_device_callback()

uint64_t librealsense::context::register_internal_device_callback ( devices_changed_callback_ptr  callback)

§ remove_device()

void librealsense::context::remove_device ( const std::string &  file)

§ set_devices_changed_callback()

void librealsense::context::set_devices_changed_callback ( devices_changed_callback_ptr  callback)

§ stop()

void librealsense::context::stop ( )
inline

§ unregister_internal_device_callback()

void librealsense::context::unregister_internal_device_callback ( uint64_t  cb_id)

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