mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
34
src/slic3r/Utils/json_diff.hpp
Normal file
34
src/slic3r/Utils/json_diff.hpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef __JSON_DIFF_HPP
|
||||
#define __JSON_DIFF_HPP
|
||||
|
||||
#include <string>
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
|
||||
using json = nlohmann::json;
|
||||
using namespace std;
|
||||
|
||||
class json_diff
|
||||
{
|
||||
private:
|
||||
json diff2all_base;
|
||||
json all2diff_base;
|
||||
int decode_error_count = 0;
|
||||
|
||||
int diff_objects(json in, json &out, json &base);
|
||||
int restore_objects(json in, json &out, json &base);
|
||||
int restore_append_objects(json in, json &out);
|
||||
|
||||
public:
|
||||
int all2diff(json &in, json &out);
|
||||
int diff2all(json &in, json &out);
|
||||
int all2diff_base_reset(json &base);
|
||||
int diff2all_base_reset(json &base);
|
||||
void compare_print(json &a, json &b);
|
||||
|
||||
bool is_need_request();
|
||||
};
|
||||
#endif // __JSON_DIFF_HPP
|
Loading…
Add table
Add a link
Reference in a new issue