psim  1.0
Generalized 2D phonon transport using a Monte Carlo method
inputManager.h
Go to the documentation of this file.
1 #ifndef PSIM_INPUTMANAGER_H
2 #define PSIM_INPUTMANAGER_H
3 
4 #include <filesystem>// for path
5 #include <optional>// for optional
6 
7 
8 class Model;
9 
10 class InputManager {
11 public:
12  InputManager() = delete;
13  /***
14  * @param filepath - Filepath to the JSON file containing the simulation settings
15  * @return A model object that is prepared to be simulated or nullopt if there is an error generating the model
16  */
17  [[nodiscard]] static std::optional<Model> deserialize(const std::filesystem::path& filepath);
18 };
19 
20 
21 #endif// PSIM_INPUTMANAGER_H
Definition: inputManager.h:10
static std::optional< Model > deserialize(const std::filesystem::path &filepath)
Definition: inputManager.cpp:22
InputManager()=delete
Definition: model.h:29