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

#include <rs_internal.hpp>

Inheritance diagram for rs2::software_device:
Inheritance graph
[legend]

Public Member Functions

software_sensor add_sensor (std::string name)
 
void add_to (context &ctx)
 
void create_matcher (rs2_matchers matcher)
 
void register_info (rs2_camera_info info, const std::string &val)
 
template<class T >
void set_destruction_callback (T callback) const
 
 software_device (std::function< void(rs2_device *)> deleter=&rs2_delete_device)
 
 software_device (std::string name)
 
void update_info (rs2_camera_info info, const std::string &val)
 
- Public Member Functions inherited from rs2::device
template<class T >
as () const
 
 device ()
 
 device (std::shared_ptr< rs2_device > dev)
 
template<class T >
first () const
 
const std::shared_ptr< rs2_device > & get () const
 
const char * get_info (rs2_camera_info info) const
 
void hardware_reset ()
 
template<class T >
bool is () const
 
 operator bool () const
 
 operator std::shared_ptr< rs2_device > ()
 
deviceoperator= (const std::shared_ptr< rs2_device > dev)
 
deviceoperator= (const device &dev)
 
std::vector< sensorquery_sensors () const
 
bool supports (rs2_camera_info info) const
 
virtual ~device ()
 

Private Member Functions

std::shared_ptr< rs2_devicecreate_device_ptr (std::function< void(rs2_device *)> deleter)
 

Additional Inherited Members

- Protected Attributes inherited from rs2::device
std::shared_ptr< rs2_device_dev
 

Detailed Description

Definition at line 260 of file rs_internal.hpp.

Constructor & Destructor Documentation

rs2::software_device::software_device ( std::function< void(rs2_device *)>  deleter = &rs2_delete_device)
inline

Definition at line 273 of file rs_internal.hpp.

rs2::software_device::software_device ( std::string  name)
inline

Definition at line 279 of file rs_internal.hpp.

Member Function Documentation

software_sensor rs2::software_device::add_sensor ( std::string  name)
inline

Add software sensor with given name to the software device.

Parameters
[in]namethe name of the sensor

Definition at line 290 of file rs_internal.hpp.

void rs2::software_device::add_to ( context ctx)
inline

Add software device to existing context. Any future queries on the context will return this device. This operation cannot be undone (except for destroying the context)

Parameters
[in]ctxcontext to add the device to

Definition at line 321 of file rs_internal.hpp.

std::shared_ptr<rs2_device> rs2::software_device::create_device_ptr ( std::function< void(rs2_device *)>  deleter)
inlineprivate

Definition at line 262 of file rs_internal.hpp.

void rs2::software_device::create_matcher ( rs2_matchers  matcher)
inline

Set the wanted matcher type that will be used by the syncer

Parameters
[in]matchermatcher type

Definition at line 358 of file rs_internal.hpp.

void rs2::software_device::register_info ( rs2_camera_info  info,
const std::string val 
)
inline

Add a new camera info value, like serial number

Parameters
[in]infoIdentifier of the camera info type
[in]valstring value to set to this camera info type

Definition at line 334 of file rs_internal.hpp.

template<class T >
void rs2::software_device::set_destruction_callback ( callback) const
inline

Register destruction callback

Parameters
[in]callbackdestruction callback

Definition at line 306 of file rs_internal.hpp.

void rs2::software_device::update_info ( rs2_camera_info  info,
const std::string val 
)
inline

Update an existing camera info value, like serial number

Parameters
[in]infoIdentifier of the camera info type
[in]valstring value to set to this camera info type

Definition at line 347 of file rs_internal.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 Mon May 3 2021 02:50:41