NetDEM v1.0
Loading...
Searching...
No Matches
input_processor.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <nlohmann/json.hpp>
4
5namespace netdem {
6
7class Simulation;
8
21public:
28
37 void Init(Simulation *s);
38
48 void ProcessJsonFile(std::string const &filename);
49
59 void ProcessJson(nlohmann::json const &js);
60
61private:
63 Simulation *sim{nullptr};
64};
65
66} // namespace netdem
A class that processes input JSON files to modify a simulation.
Definition input_processor.hpp:20
void ProcessJsonFile(std::string const &filename)
Processes a JSON file.
Definition input_processor.cpp:16
void Init(Simulation *s)
Initializes the InputProcessor object with a simulation object.
Definition input_processor.cpp:14
InputProcessor()
Constructs a new InputProcessor object.
Definition input_processor.cpp:12
void ProcessJson(nlohmann::json const &js)
Processes JSON data.
Definition input_processor.cpp:30
Class for managing a DEM simulation.
Definition simulation.hpp:21
Definition bond_entry.hpp:7