Skip to main content

AVxcelerate Simulation Framework 2025 R2

cli_parser

Last update: 16.07.2025
1
3
4#pragma once
5
6#include "core/service/parameter/simulation_parameters.h"
7#include <optional>
13{
14namespace core
15{
16
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
Command-line argument parser for simulation framework.
Definition cli_parser.h:23
std::optional< std::string > GetInputFileByName(const std::string &name) const
Retrieves the input file path by its name.
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.

Connect with Ansys