Classes | Namespaces | Typedefs | Functions
json_loader.hpp File Reference
#include <fstream>
#include <chrono>
#include <thread>
#include <sstream>
#include <map>
#include <string>
#include <iomanip>
#include "../../../third-party/json.hpp"
#include <librealsense2/h/rs_advanced_mode_command.h>
#include "types.h"
#include "presets.h"
Include dependency graph for json_loader.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  librealsense::json_field
 
struct  librealsense::json_ignored_field
 
struct  librealsense::json_invert_struct_field< T, S >
 
struct  librealsense::json_string_struct_field< T, S >
 
struct  librealsense::json_struct_field< T, S >
 
struct  librealsense::param_group< T >
 
struct  librealsense::preset_param_group
 

Namespaces

 librealsense
 

Typedefs

using librealsense::json = nlohmann::json
 
typedef std::map< std::string, std::shared_ptr< json_field > > librealsense::parsers_map
 

Functions

std::vector< uint8_tlibrealsense::generate_json (const preset &in_preset)
 
parsers_map librealsense::initialize_field_parsers (preset_param_group &p)
 
template<class T , typename S >
void librealsense::insert_control_to_map (parsers_map &map, bool was_set, const std::string &name, param_group< T > &control, S field)
 
template<class T , typename S >
void librealsense::insert_string_control_to_map (parsers_map &map, bool was_set, const std::string &name, param_group< T > &control, S field, const std::map< std::string, float > &values)
 
template<class T , class S >
std::shared_ptr< json_field > librealsense::make_field (T &strct, S T::group_type::*field, float scale=1.0f, bool is_duplicated_field=false)
 
std::shared_ptr< json_field > librealsense::make_ignored_field ()
 
template<class T , class S >
std::shared_ptr< json_field > librealsense::make_invert_field (T &strct, S T::group_type::*field, bool is_duplicated_field=false)
 
template<class T , class S >
std::shared_ptr< json_field > librealsense::make_string_field (T &strct, S T::group_type::*field, const std::map< std::string, float > &values, bool is_duplicated_field=false)
 
template<typename T >
void librealsense::update_preset_camera_control (T &camera_control, const param_group< T > &param)
 
template<typename T >
void librealsense::update_preset_control (T &preset_control, const param_group< T > &param)
 
void librealsense::update_structs (const std::string &content, preset &in_preset)
 


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:27