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

#include <option.h>

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

Public Member Functions

 const_value_option (std::string desc, float val)
 
 const_value_option (std::string desc, lazy< float > val)
 
const char * get_description () const override
 
option_range get_range () const override
 
bool is_enabled () const override
 
float query () const override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
- Public Member Functions inherited from librealsense::readonly_option
void enable_recording (std::function< void(const option &)> record_action) override
 
bool is_read_only () const override
 
void set (float) override
 
- 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 ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 

Private Attributes

std::string _desc
 
lazy< float > _val
 

Detailed Description

Definition at line 57 of file option.h.

Constructor & Destructor Documentation

librealsense::const_value_option::const_value_option ( std::string  desc,
float  val 
)
inline

Definition at line 60 of file option.h.

librealsense::const_value_option::const_value_option ( std::string  desc,
lazy< float >  val 
)
inline

Definition at line 63 of file option.h.

Member Function Documentation

const char* librealsense::const_value_option::get_description ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 70 of file option.h.

option_range librealsense::const_value_option::get_range ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 67 of file option.h.

bool librealsense::const_value_option::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 68 of file option.h.

float librealsense::const_value_option::query ( void  ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 66 of file option.h.

void librealsense::const_value_option::update ( std::shared_ptr< extension_snapshot ext)
inlineoverridevirtual

Implements librealsense::extension_snapshot.

Definition at line 72 of file option.h.

Member Data Documentation

std::string librealsense::const_value_option::_desc
private

Definition at line 83 of file option.h.

lazy<float> librealsense::const_value_option::_val
private

Definition at line 82 of file option.h.


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


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