2021-05-05 16:42:11 +02:00
|
|
|
#include "rapidjson/document.h"
|
|
|
|
#include "rapidjson/filereadstream.h"
|
|
|
|
#include <cstdio>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#define INPUTS_FILE "inputs.json"
|
|
|
|
|
|
|
|
using namespace rapidjson;
|
|
|
|
|
|
|
|
class Inputs {
|
|
|
|
Document d;
|
|
|
|
std::string node_name;
|
|
|
|
public:
|
|
|
|
Inputs(std::string node_name);
|
2021-05-06 09:04:35 +02:00
|
|
|
static void GeneratePlatform(std::string p);
|
|
|
|
|
2021-05-05 16:42:11 +02:00
|
|
|
double wake_duration;
|
|
|
|
double wake_interval;
|
2021-05-06 09:04:35 +02:00
|
|
|
double startup_delay;
|
|
|
|
bool is_sender;
|
2021-05-06 11:57:50 +02:00
|
|
|
bool use_hint;
|
2021-05-06 09:04:35 +02:00
|
|
|
int max_attempts;
|
2021-05-06 11:57:50 +02:00
|
|
|
int data_size;
|
2021-05-05 16:42:11 +02:00
|
|
|
};
|