-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJSON_Worker.hpp
38 lines (30 loc) · 1.47 KB
/
JSON_Worker.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <vector>
#include <string>
#include <fstream>
#include "nlohmann/json.hpp"
#include "Ball.hpp"
class Ball;
class JSON_Worker {
public:
static void setCurrentDynamicData(std::vector <double> Time_Axis,
std::vector <double> XData,
std::vector <double> YData,
std::vector <double> ZData,
std::vector <double> UData,
std::vector <double> VData,
double current_time);
static void setCurrentStaticMetroData(std::vector <double> XStaticData, std::vector <double> YStaticData, std::vector <double> ZStaticData);
static void generateFileWithDynamicMetroData(std::string path);
static void generateFileWithStaticMetroData(std::string path);
static void rewriteHSVData(int num, void* data);
static void writeHSVFile();
static void readHSV();
static int static_data_Recording_Flag;
static int ball_trajectory_counter;
static int ball_static_record_counter;
private:
static nlohmann::json* JSON_Static_Data;
static nlohmann::json* JSON_Dynamic_Data;
static nlohmann::json* JSON_HSV_Data;
};