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
5
namespace
netdem
{
6
7
class
Simulation;
8
20
class
InputProcessor
{
21
public
:
27
InputProcessor
();
28
37
void
Init
(
Simulation
*s);
38
48
void
ProcessJsonFile
(std::string
const
&filename);
49
59
void
ProcessJson
(nlohmann::json
const
&js);
60
61
private
:
63
Simulation
*sim{
nullptr
};
64
};
65
66
}
// namespace netdem
netdem::InputProcessor
A class that processes input JSON files to modify a simulation.
Definition
input_processor.hpp:20
netdem::InputProcessor::ProcessJsonFile
void ProcessJsonFile(std::string const &filename)
Processes a JSON file.
Definition
input_processor.cpp:16
netdem::InputProcessor::Init
void Init(Simulation *s)
Initializes the InputProcessor object with a simulation object.
Definition
input_processor.cpp:14
netdem::InputProcessor::InputProcessor
InputProcessor()
Constructs a new InputProcessor object.
Definition
input_processor.cpp:12
netdem::InputProcessor::ProcessJson
void ProcessJson(nlohmann::json const &js)
Processes JSON data.
Definition
input_processor.cpp:30
netdem::Simulation
Class for managing a DEM simulation.
Definition
simulation.hpp:21
netdem
Definition
bond_entry.hpp:7
netdem
src
input
input_processor.hpp
Generated by
1.12.0