Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
#include <extension.h>
Public Member Functions | |
virtual void | create_snapshot (std::shared_ptr< T > &snapshot) const =0 |
virtual void | enable_recording (std::function< void(const T &)> recording_function)=0 |
virtual | ~recordable ()=default |
Deriving classes are expected to return an extension_snapshot We need this since Sensors will derive from multiple extensions and C++ does not allow function overloads by return type
T | The interface that should be recorded |
|
virtualdefault |
|
pure virtual |
Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call
Implemented in librealsense::sr300_camera, librealsense::sr300_camera::sr300_depth_sensor, librealsense::depth_stereo_sensor_snapshot, librealsense::depth_sensor_snapshot, librealsense::ds5_advanced_mode_base, librealsense::options_container, librealsense::stream_profile_base, librealsense::ds5_device, librealsense::info_container, and librealsense::option.
|
pure virtual |
Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves
Implemented in librealsense::sr300_camera, librealsense::auto_disabling_control, librealsense::polling_errors_disable, librealsense::struct_field_option< T, R, W, U >, librealsense::sr300_camera::sr300_depth_sensor, librealsense::uvc_xu_option< T >, librealsense::uvc_xu_option< uint8_t >, librealsense::depth_stereo_sensor_snapshot, librealsense::uvc_pu_option, librealsense::depth_sensor_snapshot, librealsense::depth_scale_option, librealsense::ptr_option< T >, librealsense::ds5_advanced_mode_base, librealsense::options_container, librealsense::option_base, librealsense::stream_profile_base, librealsense::ds5_device, librealsense::info_container, and librealsense::readonly_option.