From 4b321cfe80f0bbf94f3648a9fc056ae2c19a3436 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 6 May 2021 09:04:35 +0200 Subject: Improve platform management and allow energy simulation --- src/inputs.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/inputs.hpp (limited to 'src/inputs.hpp') diff --git a/src/inputs.hpp b/src/inputs.hpp new file mode 100644 index 0000000..92b9005 --- /dev/null +++ b/src/inputs.hpp @@ -0,0 +1,22 @@ +#include "rapidjson/document.h" +#include "rapidjson/filereadstream.h" +#include +#include + +#define INPUTS_FILE "inputs.json" + +using namespace rapidjson; + +class Inputs { + Document d; + std::string node_name; +public: + Inputs(std::string node_name); + static void GeneratePlatform(std::string p); + + double wake_duration; + double wake_interval; + double startup_delay; + bool is_sender; + int max_attempts; +}; \ No newline at end of file -- cgit v1.2.3