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

#include <option.h>

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

Public Member Functions

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
 
float query () const override
 
void set (float value) override
 
 uvc_pu_option (uvc_sensor &ep, rs2_option id)
 
 uvc_pu_option (uvc_sensor &ep, rs2_option id, const std::map< float, std::string > &description_per_value)
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual bool is_read_only () const
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Private Attributes

const std::map< float, std::string_description_per_value
 
uvc_sensor_ep
 
rs2_option _id
 
std::function< void(const option &)> _record = [](const option&) {}
 

Detailed Description

Definition at line 284 of file option.h.

Constructor & Destructor Documentation

librealsense::uvc_pu_option::uvc_pu_option ( uvc_sensor ep,
rs2_option  id 
)
inline

Definition at line 298 of file option.h.

librealsense::uvc_pu_option::uvc_pu_option ( uvc_sensor ep,
rs2_option  id,
const std::map< float, std::string > &  description_per_value 
)
inline

Definition at line 303 of file option.h.

Member Function Documentation

void librealsense::uvc_pu_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 316 of file option.h.

const char * librealsense::uvc_pu_option::get_description ( ) const
overridevirtual

Implements librealsense::option.

Definition at line 86 of file option.cpp.

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

Implements librealsense::option.

Definition at line 66 of file option.cpp.

const char* librealsense::uvc_pu_option::get_value_description ( float  val) const
inlineoverridevirtual

Reimplemented from librealsense::option.

Definition at line 310 of file option.h.

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

Implements librealsense::option.

Definition at line 293 of file option.h.

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

Implements librealsense::option.

Definition at line 53 of file option.cpp.

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

Implements librealsense::option.

Definition at line 42 of file option.cpp.

Member Data Documentation

const std::map<float, std::string> librealsense::uvc_pu_option::_description_per_value
private

Definition at line 323 of file option.h.

uvc_sensor& librealsense::uvc_pu_option::_ep
private

Definition at line 321 of file option.h.

rs2_option librealsense::uvc_pu_option::_id
private

Definition at line 322 of file option.h.

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

Definition at line 324 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:38