Public Member Functions | Protected Attributes | List of all members
librealsense::uvc_xu_option< T > Class Template Reference

#include <option.h>

Inheritance diagram for librealsense::uvc_xu_option< T >:
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_xu_option (uvc_sensor &ep, platform::extension_unit xu, uint8_t id, std::string description)
 
 uvc_xu_option (uvc_sensor &ep, platform::extension_unit xu, uint8_t id, std::string description, 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
 

Protected Attributes

std::string _desciption
 
const std::map< float, std::string_description_per_value
 
uvc_sensor_ep
 
uint8_t _id
 
std::function< void(const option &)> _recording_function = [](const option&) {}
 
platform::extension_unit _xu
 

Detailed Description

template<typename T>
class librealsense::uvc_xu_option< T >

Definition at line 329 of file option.h.

Constructor & Destructor Documentation

template<typename T>
librealsense::uvc_xu_option< T >::uvc_xu_option ( uvc_sensor ep,
platform::extension_unit  xu,
uint8_t  id,
std::string  description 
)
inline

Definition at line 379 of file option.h.

template<typename T>
librealsense::uvc_xu_option< T >::uvc_xu_option ( uvc_sensor ep,
platform::extension_unit  xu,
uint8_t  id,
std::string  description,
const std::map< float, std::string > &  description_per_value 
)
inline

Definition at line 383 of file option.h.

Member Function Documentation

template<typename T>
void librealsense::uvc_xu_option< T >::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 391 of file option.h.

template<typename T>
const char* librealsense::uvc_xu_option< T >::get_description ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 387 of file option.h.

template<typename T>
option_range librealsense::uvc_xu_option< T >::get_range ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 357 of file option.h.

template<typename T>
const char* librealsense::uvc_xu_option< T >::get_value_description ( float  val) const
inlineoverridevirtual

Reimplemented from librealsense::option.

Definition at line 395 of file option.h.

template<typename T>
bool librealsense::uvc_xu_option< T >::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 377 of file option.h.

template<typename T>
float librealsense::uvc_xu_option< T >::query ( void  ) const
inlineoverridevirtual

Implements librealsense::option.

Reimplemented in librealsense::protected_xu_option< T >.

Definition at line 344 of file option.h.

template<typename T>
void librealsense::uvc_xu_option< T >::set ( float  value)
inlineoverridevirtual

Implements librealsense::option.

Reimplemented in librealsense::protected_xu_option< T >.

Definition at line 332 of file option.h.

Member Data Documentation

template<typename T>
std::string librealsense::uvc_xu_option< T >::_desciption
protected

Definition at line 405 of file option.h.

template<typename T>
const std::map<float, std::string> librealsense::uvc_xu_option< T >::_description_per_value
protected

Definition at line 407 of file option.h.

template<typename T>
uvc_sensor& librealsense::uvc_xu_option< T >::_ep
protected

Definition at line 402 of file option.h.

template<typename T>
uint8_t librealsense::uvc_xu_option< T >::_id
protected

Definition at line 404 of file option.h.

template<typename T>
std::function<void(const option&)> librealsense::uvc_xu_option< T >::_recording_function = [](const option&) {}
protected

Definition at line 406 of file option.h.

template<typename T>
platform::extension_unit librealsense::uvc_xu_option< T >::_xu
protected

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