Class options

Inheritance Relationships

Derived Types

Class Documentation

class options

Subclassed by rs2::processing_block, rs2::sensor

Public Functions

inline bool supports(rs2_option option) const

check if particular option is supported

Parameters:

option[in] option id to be checked

Returns:

true if option is supported

inline const char *get_option_description(rs2_option option) const

get option description

Parameters:

option[in] option id to be checked

Returns:

human-readable option description

inline const char *get_option_name(rs2_option option) const

get option name

Parameters:

option[in] option id to be checked

Returns:

human-readable option name

inline const char *get_option_value_description(rs2_option option, float val) const

get option value description (in case specific option value hold special meaning)

Parameters:
  • option[in] option id to be checked

  • val[in] value of the option

Returns:

human-readable description of a specific value of an option or null if no special meaning

inline float get_option(rs2_option option) const

read option’s value

Parameters:

option[in] option id to be queried

Returns:

value of the option

inline option_range get_option_range(rs2_option option) const

retrieve the available range of values of a supported option

Returns:

option range containing minimum and maximum values, step and default value

inline void set_option(rs2_option option, float value) const

write new value to the option

Parameters:
  • option[in] option id to be queried

  • value[in] new value for the option

inline bool is_option_read_only(rs2_option option) const

check if particular option is read-only

Parameters:

option[in] option id to be checked

Returns:

true if option is read-only

inline std::vector<rs2_option> get_supported_options()
inline options &operator=(const options &other)
inline options(const options &other)
virtual ~options() = default

Protected Functions

inline explicit options(rs2_options *o = nullptr)
template<class T>
inline options &operator=(const T &dev)