#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/json_diff.hpp>
Public Member Functions | |
| bool | load_compatible_settings (std::string const &type, std::string const &version) |
| int | all2diff (nlohmann::json const &in, nlohmann::json &out) |
| int | diff2all (nlohmann::json const &in, nlohmann::json &out) |
| int | all2diff_base_reset (nlohmann::json const &base) |
| int | diff2all_base_reset (nlohmann::json &base) |
| void | compare_print (nlohmann::json &a, nlohmann::json &b) |
| bool | is_need_request () |
Private Member Functions | |
| int | diff_objects (nlohmann::json const &in, nlohmann::json &out, nlohmann::json const &base) |
| int | restore_objects (nlohmann::json const &in, nlohmann::json &out, nlohmann::json const &base) |
| int | restore_append_objects (nlohmann::json const &in, nlohmann::json &out) |
| void | merge_objects (nlohmann::json const &in, nlohmann::json &out) |
Private Attributes | |
| std::string | printer_type |
| std::string | printer_version = "00.00.00.00" |
| nlohmann::json | settings_base |
| nlohmann::json | full_message |
| nlohmann::json | diff2all_base |
| nlohmann::json | all2diff_base |
| int | decode_error_count = 0 |
| int json_diff::all2diff | ( | nlohmann::json const & | in, |
| nlohmann::json & | out ) |
References all2diff_base, and diff_objects().
| int json_diff::all2diff_base_reset | ( | nlohmann::json const & | base | ) |
References all2diff_base.
| void json_diff::compare_print | ( | nlohmann::json & | a, |
| nlohmann::json & | b ) |
| int json_diff::diff2all | ( | nlohmann::json const & | in, |
| nlohmann::json & | out ) |
References decode_error_count, diff2all_base, restore_append_objects(), and restore_objects().
| int json_diff::diff2all_base_reset | ( | nlohmann::json & | base | ) |
References diff2all_base, full_message, merge_objects(), and settings_base.
Referenced by load_compatible_settings().
|
private |
References diff_objects().
Referenced by all2diff(), and diff_objects().
| bool json_diff::is_need_request | ( | ) |
References decode_error_count.
| bool json_diff::load_compatible_settings | ( | std::string const & | type, |
| std::string const & | version ) |
References Slic3r::data_dir(), diff2all_base_reset(), full_message, merge_objects(), printer_type, printer_version, and settings_base.
|
private |
References merge_objects().
Referenced by diff2all_base_reset(), load_compatible_settings(), and merge_objects().
|
private |
References restore_append_objects().
Referenced by diff2all(), and restore_append_objects().
|
private |
References restore_objects().
Referenced by diff2all(), and restore_objects().
|
private |
Referenced by all2diff(), and all2diff_base_reset().
|
private |
Referenced by diff2all(), and is_need_request().
|
private |
Referenced by diff2all(), and diff2all_base_reset().
|
private |
Referenced by diff2all_base_reset(), and load_compatible_settings().
|
private |
Referenced by load_compatible_settings().
|
private |
Referenced by load_compatible_settings().
|
private |
Referenced by diff2all_base_reset(), and load_compatible_settings().