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

#include <rs_internal.hpp>

Inheritance diagram for rs2::software_device:
rs2::device

Public Member Functions

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ software_device() [1/2]

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

◆ software_device() [2/2]

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

Member Function Documentation

◆ add_sensor()

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

◆ add_to()

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

◆ create_matcher()

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

◆ register_info()

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

◆ set_destruction_callback()

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

Register destruction callback

Parameters
[in]callbackdestruction callback

◆ update_info()

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

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