Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
#include <option.h>
Public Member Functions | |
option_base (const option_range &opt_range) | |
bool | is_valid (float value) const |
option_range | get_range () const override |
virtual void | enable_recording (std::function< void(const option &)> recording_action) override |
![]() | |
virtual void | set (float value)=0 |
virtual float | query () const =0 |
virtual bool | is_enabled () const =0 |
virtual bool | is_read_only () const |
virtual const char * | get_description () const =0 |
virtual const char * | get_value_description (float) const |
virtual void | create_snapshot (std::shared_ptr< option > &snapshot) const override |
virtual | ~option ()=default |
![]() | |
virtual | ~recordable ()=default |
Protected Attributes | |
const option_range | _opt_range |
std::function< void(const option &)> | _recording_function = [](const option&) {} |
|
inline |
|
inlineoverridevirtual |
Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves
Implements librealsense::recordable< option >.
Reimplemented in librealsense::ptr_option< T >.
|
inlineoverridevirtual |
Implements librealsense::option.
Reimplemented in librealsense::ptr_option< T >.
|
inline |
|
protected |
|
protected |