4 #ifndef LIBREALSENSE_RS2_OPTIONS_HPP 5 #define LIBREALSENSE_RS2_OPTIONS_HPP 121 std::vector<rs2_option> res;
123 std::shared_ptr<rs2_options_list> options_list(
136 _options = other._options;
159 #endif // LIBREALSENSE_RS2_OIPTIONS_HPP float rs2_get_option(const rs2_options *options, rs2_option option, rs2_error **error)
bool supports(rs2_option option) const
Definition: rs_options.hpp:19
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
virtual ~options()=default
const char * get_option_name(rs2_option option) const
Definition: rs_options.hpp:45
float min
Definition: rs_types.hpp:178
options & operator=(const T &dev)
Definition: rs_options.hpp:149
Definition: rs_context.hpp:11
const char * get_option_description(rs2_option option) const
Definition: rs_options.hpp:32
options(const options &other)
Definition: rs_options.hpp:140
float max
Definition: rs_types.hpp:179
float step
Definition: rs_types.hpp:181
float get_option(rs2_option option) const
Definition: rs_options.hpp:72
std::vector< rs2_option > get_supported_options()
Definition: rs_options.hpp:119
int rs2_supports_option(const rs2_options *options, rs2_option option, rs2_error **error)
const char * rs2_get_option_name(const rs2_options *options, rs2_option option, rs2_error **error)
const char * rs2_get_option_value_description(const rs2_options *options, rs2_option option, float value, rs2_error **error)
Definition: rs_types.hpp:176
Definition: rs_options.hpp:11
const char * get_option_value_description(rs2_option option, float val) const
Definition: rs_options.hpp:59
void rs2_get_option_range(const rs2_options *sensor, rs2_option option, float *min, float *max, float *step, float *def, rs2_error **error)
rs2_options_list * rs2_get_options_list(const rs2_options *options, rs2_error **error)
struct rs2_options rs2_options
Definition: rs_types.h:276
static void handle(rs2_error *e)
Definition: rs_types.hpp:144
options(rs2_options *o=nullptr)
Definition: rs_options.hpp:144
bool is_option_read_only(rs2_option option) const
Definition: rs_options.hpp:111
option_range get_option_range(rs2_option option) const
Definition: rs_options.hpp:84
void set_option(rs2_option option, float value) const
Definition: rs_options.hpp:99
float def
Definition: rs_types.hpp:180
const char * rs2_get_option_description(const rs2_options *options, rs2_option option, rs2_error **error)
options & operator=(const options &other)
Definition: rs_options.hpp:134
int rs2_is_option_read_only(const rs2_options *options, rs2_option option, rs2_error **error)
void rs2_set_option(const rs2_options *options, rs2_option option, float value, rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:251
void rs2_delete_options_list(rs2_options_list *list)
rs2_option rs2_get_option_from_list(const rs2_options_list *options, int i, rs2_error **error)
int rs2_get_options_list_size(const rs2_options_list *options, rs2_error **error)