Public Member Functions | Private Attributes | List of all members
librealsense::emitter_on_and_off_option Class Reference

#include <ds5-options.h>

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

Public Member Functions

 emitter_on_and_off_option (hw_monitor &hwm, sensor_base *depth_ep)
 
virtual void enable_recording (std::function< void(const option &)> record_action) override
 
virtual const char * get_description () const override
 
virtual option_range get_range () const override
 
virtual bool is_enabled () const override
 
virtual float query () const override
 
virtual void set (float value) override
 
virtual ~emitter_on_and_off_option ()=default
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual const char * get_value_description (float) const
 
virtual bool is_read_only () const
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Private Attributes

hw_monitor_hwm
 
lazy< option_range_range
 
std::function< void(const option &)> _record_action = [](const option&) {}
 
sensor_base_sensor
 

Detailed Description

Definition at line 216 of file ds5-options.h.

Constructor & Destructor Documentation

librealsense::emitter_on_and_off_option::emitter_on_and_off_option ( hw_monitor hwm,
sensor_base depth_ep 
)

Definition at line 447 of file ds5-options.cpp.

virtual librealsense::emitter_on_and_off_option::~emitter_on_and_off_option ( )
virtualdefault

Member Function Documentation

virtual void librealsense::emitter_on_and_off_option::enable_recording ( std::function< void(const option &)>  recording_function)
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 >.

Definition at line 229 of file ds5-options.h.

virtual const char* librealsense::emitter_on_and_off_option::get_description ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 225 of file ds5-options.h.

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

Implements librealsense::option.

Definition at line 478 of file ds5-options.cpp.

virtual bool librealsense::emitter_on_and_off_option::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 224 of file ds5-options.h.

float librealsense::emitter_on_and_off_option::query ( void  ) const
overridevirtual

Implements librealsense::option.

Definition at line 468 of file ds5-options.cpp.

void librealsense::emitter_on_and_off_option::set ( float  value)
overridevirtual

Implements librealsense::option.

Definition at line 456 of file ds5-options.cpp.

Member Data Documentation

hw_monitor& librealsense::emitter_on_and_off_option::_hwm
private

Definition at line 234 of file ds5-options.h.

lazy<option_range> librealsense::emitter_on_and_off_option::_range
private

Definition at line 233 of file ds5-options.h.

std::function<void(const option &)> librealsense::emitter_on_and_off_option::_record_action = [](const option&) {}
private

Definition at line 232 of file ds5-options.h.

sensor_base* librealsense::emitter_on_and_off_option::_sensor
private

Definition at line 235 of file ds5-options.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