Class software_device
Defined in File rs_internal.hpp
Inheritance Relationships
Base Type
public rs2::device
(Class device)
Class Documentation
-
class software_device : public rs2::device
Public Functions
-
inline software_device(std::function<void(rs2_device*)> deleter = &rs2_delete_device)
-
inline software_device(std::string name)
-
inline software_sensor add_sensor(std::string name)
Add software sensor with given name to the software device.
- Parameters:
name – [in] the name of the sensor
-
template<class T>
inline void set_destruction_callback(T callback) const Register destruction callback
- Parameters:
callback – [in] destruction callback
-
inline void add_to(context &ctx)
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:
ctx – [in] context to add the device to
-
inline void register_info(rs2_camera_info info, const std::string &val)
Add a new camera info value, like serial number
- Parameters:
info – [in] Identifier of the camera info type
val – [in] string value to set to this camera info type
-
inline void update_info(rs2_camera_info info, const std::string &val)
Update an existing camera info value, like serial number
- Parameters:
info – [in] Identifier of the camera info type
val – [in] string value to set to this camera info type
-
inline void create_matcher(rs2_matchers matcher)
Set the wanted matcher type that will be used by the syncer
- Parameters:
matcher – [in] matcher type
-
inline software_device(std::function<void(rs2_device*)> deleter = &rs2_delete_device)