Skip to main content

AVxcelerate Simulation Framework 2025 R1

cli_parser

Last update: 16.07.2025
1 
3 
4 #pragma once
5 
6 #include "core/service/parameter/simulation_parameters.h"
7 #include <optional>
12 namespace simulation_framework
13 {
14 namespace core
15 {
16 
22 class CliParser final
23 {
24  public:
30  bool Parse(int argc, const char** argv);
31 
34  std::string GetParserMessage() const;
35 
39 
43  std::optional<std::string> GetInputFileByName(const std::string& name) const;
44 
47  std::string GetSimulationConfig() const;
48 
49  private:
55  bool ConvertFileStringIntoFiles(const std::vector<std::string>& input_args, std::vector<File>& files);
56 
58  SimulationParameters core_parameters_{};
59 
61  std::string parser_message_{};
62 };
63 
64 } // namespace core
65 } // namespace simulation_framework

Connect with Ansys