Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

cli_parser

Last update: 19.09.2025
1
2
3#pragma once
4
5#include "core/service/parameter/simulation_parameters.h"
6#include <optional>
7#include <string>
8#include <variant>
9#include <vector>
10
16{
17namespace core
18{
19
26{
27 public:
33 bool Parse(int argc, const char** argv);
34
37 std::string GetParserMessage() const;
38
42
45 std::string GetSimulationConfig() const;
46
47 private:
54 bool ConvertCustomizedParameterFromArgs(const std::vector<std::string>& input_args,
55 SimulationParameters::CustomizedParameters& customized_parameters);
56
58 SimulationParameters core_parameters_{};
59
61 std::string parser_message_{};
62};
63
64} // namespace core
65} // namespace simulation_framework
Command-line argument parser for simulation framework.
Definition cli_parser.h:26
std::string GetSimulationConfig() const
Returns the simulation configuration for the application level.
const SimulationParameters & GetSimulationParameters() const
Returns the simulation framework core parameters.
std::string GetParserMessage() const
Returns information provided by the parser (e.g., errors or help), if applicable.
bool Parse(int argc, const char **argv)
Takes the command-line arguments and parses them.
This is the concrete Topic class that can be used for creation of a communication channel with given ...
Definition topic.h:38
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.
The SimulationParameters struct encapsulates parameters related to simfwk-core configuration.
std::unordered_map< std::string, std::string > CustomizedParameters
A definition of customized parameters which simulation could use as input. key is the name of the cus...

Connect with Ansys