5 #include "../../../third-party/json.hpp" 14 :_hw_monitor_ptr(hw_monitor),
15 _depth_sensor(depth_sensor)
26 for(
auto o : options )
34 return std::vector< uint8_t >(
str.begin(),
str.end() );
52 if( found_sensor_mode != j.
end() )
54 float sensor_mode_val = found_sensor_mode.
value();
55 sensor_mode.set( sensor_mode_val );
61 if( found_iterator != j.
end() )
81 auto default_preset =
false;
85 if( opt.is_read_only() )
94 float val =
it.value();
98 default_preset =
true;
110 auto preset = options->calc_preset_from_controls();
111 options->set_preset_value(
preset );
const char * get_string(rs2_rs400_visual_preset value)
static basic_json parse(T(&array)[N], const parser_callback_t cb=nullptr)
deserialize from an array
a class to store JSON values
GLsizei const GLchar *const * string
void load_json(const std::string &json_content) override
synthetic_sensor & _depth_sensor
option & get_option(rs2_option id) override
virtual float query() const =0
iterator end() noexcept
returns an iterator to one past the last element
std::vector< rs2_option > get_supported_options() const override
iterator find(typename object_t::key_type key)
find an element in a JSON object
std::vector< uint8_t > serialize_json() const override
l500_serializable(std::shared_ptr< hw_monitor > hw_monitor, synthetic_sensor &depth_sensor)
string_t dump(const int indent=-1) const
serialization
reference value() const
return the value of an iterator
auto group_multiple_fw_calls(synthetic_sensor &s, T action) -> decltype(action())
basic_json<> json
default JSON class
rs2_l500_visual_preset
For L500 devices: provides optimized settings (presets) for specific types of usage.