core/service/cli/cli_parser.h
Classes
Namespaces
Includes
- core/export/simfwk_core_export.h
- core/service/parameter/simulation_parameters.h
- <optional>
- <string>
- <variant>
- <vector>
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
core/service/cli/cli_parser.h
#ifndef SIMFWK_CORE_SERVICE_CLI_CLIPARSER_H
#define SIMFWK_CORE_SERVICE_CLI_CLIPARSER_H
#include "core/export/simfwk_core_export.h"
#include "core/service/parameter/simulation_parameters.h"
#include <optional>
#include <string>
#include <variant>
#include <vector>
namespace simulation_framework
{
namespace core
{
class SIMFWK_CORE_API CliParser final
{
public:
bool Parse(int argc, const char** argv);
std::string GetParserMessage() const;
const SimulationParameters& GetSimulationParameters() const;
std::string GetSimulationConfig() const;
private:
bool ConvertCustomizedParameterFromArgs(const std::vector<std::string>& input_args,
SimulationParameters::CustomizedParameters& customized_parameters);
SimulationParameters core_parameters_{};
std::string parser_message_{};
};
} // namespace core
} // namespace simulation_framework
#endif // SIMFWK_CORE_SERVICE_CLI_CLIPARSER_H
Was this page helpful?