Public Member Functions | Protected Attributes | List of all members
librealsense::option_base Class Reference

#include <option.h>

Inheritance diagram for librealsense::option_base:
Inheritance graph
[legend]

Public Member Functions

virtual void enable_recording (std::function< void(const option &)> recording_action) override
 
option_range get_range () const override
 
bool is_valid (float value) const
 
 option_base (const option_range &opt_range)
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual const char * get_description () const =0
 
virtual const char * get_value_description (float) const
 
virtual bool is_enabled () const =0
 
virtual bool is_read_only () const
 
virtual float query () const =0
 
virtual void set (float value)=0
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Protected Attributes

const option_range _opt_range
 
std::function< void(const option &)> _recording_function = [](const option&) {}
 

Detailed Description

Definition at line 86 of file option.h.

Constructor & Destructor Documentation

librealsense::option_base::option_base ( const option_range opt_range)
inline

Definition at line 89 of file option.h.

Member Function Documentation

void librealsense::option_base::enable_recording ( std::function< void(const option &)>  recording_function)
overridevirtual

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::ivcam2::hw_sync_option, librealsense::ivcam2::freefall_option, librealsense::auto_gain_limit_option, librealsense::auto_exposure_limit_option, librealsense::ptr_option< T >, librealsense::ivcam2::ac_trigger::reset_option, and librealsense::ivcam2::ac_trigger::enabler_option.

Definition at line 25 of file option.cpp.

librealsense::option_range librealsense::option_base::get_range ( ) const
overridevirtual

Implements librealsense::option.

Definition at line 21 of file option.cpp.

bool librealsense::option_base::is_valid ( float  value) const

Definition at line 6 of file option.cpp.

Member Data Documentation

const option_range librealsense::option_base::_opt_range
protected

Definition at line 99 of file option.h.

std::function<void(const option&)> librealsense::option_base::_recording_function = [](const option&) {}
protected

Definition at line 100 of file option.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:37