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

gated_option class will permit the user to perform only read (query) of the read_only option when its affecting_option is set More...

#include <option.h>

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

Public Member Functions

 gated_option (std::shared_ptr< option > leading_to_read_only, std::vector< std::pair< std::shared_ptr< option >, std::string >> gated_options)
 
void set (float value) override
 
- Public Member Functions inherited from librealsense::proxy_option
void enable_recording (std::function< void(const option &)> record_action) override
 
const char * get_description () const override
 
option_range get_range () const override
 
const char * get_value_description (float val) const override
 
bool is_enabled () const override
 
bool is_read_only () const override
 
 proxy_option (std::shared_ptr< option > proxy_option)
 
float query () const override
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Private Attributes

std::vector< std::pair< std::weak_ptr< option >, std::string > > _gated_options
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::proxy_option
std::shared_ptr< option_proxy
 
std::function< void(const option &)> _recording_function = [](const option&) {}
 

Detailed Description

gated_option class will permit the user to perform only read (query) of the read_only option when its affecting_option is set

Definition at line 633 of file option.h.

Constructor & Destructor Documentation

librealsense::gated_option::gated_option ( std::shared_ptr< option leading_to_read_only,
std::vector< std::pair< std::shared_ptr< option >, std::string >>  gated_options 
)
inlineexplicit

Definition at line 636 of file option.h.

Member Function Documentation

void librealsense::gated_option::set ( float  value)
inlineoverridevirtual

Reimplemented from librealsense::proxy_option.

Definition at line 646 of file option.h.

Member Data Documentation

std::vector< std::pair<std::weak_ptr<option>, std::string> > librealsense::gated_option::_gated_options
private

Definition at line 670 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