diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-05-06 09:04:35 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-05-06 09:04:35 +0200 |
| commit | 4b321cfe80f0bbf94f3648a9fc056ae2c19a3436 (patch) | |
| tree | 9e6e8d561a77b9f684d33716b642521d1bce67c0 /src/inputs.hpp | |
| parent | e8ad4ccb0979e1118e310d1e514ef3a58275b66f (diff) | |
Improve platform management and allow energy simulation
Diffstat (limited to 'src/inputs.hpp')
| -rw-r--r-- | src/inputs.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
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 <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); + 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 |
