Skip to content

Commit 1f38d1f

Browse files
author
Lior Ramati
committed
Add software_device constructor with name argument
1 parent 72d9751 commit 1f38d1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/librealsense2/hpp/rs_internal.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ namespace rs2
263263
: device(create_device_ptr())
264264
{}
265265

266+
software_device(std::string name)
267+
: device(create_device_ptr())
268+
{
269+
update_info(RS2_CAMERA_INFO_NAME, name);
270+
}
271+
266272
/**
267273
* Add software sensor with given name to the software device.
268274
*

0 commit comments

Comments
 (0)