    

 ## On this page

  

 

 # cli\_parser

 Last update: 16.07.2025 

<a name="l00001"></a> 1 

<a name="l00003"></a> 3 

<a name="l00004"></a> 4 \#pragma once

<a name="l00005"></a> 5 

<a name="l00006"></a> 6 \#include "core/service/parameter/simulation\_parameters.h"

<a name="l00007"></a> 7 \#include &lt;optional&gt;

<a name="l00012"></a> 12 namespace [simulation\_framework](namespacesimulation__framework.xhtml)

<a name="l00013"></a> 13 {

<a name="l00014"></a> 14 namespace [core](namespacecore.xhtml)

<a name="l00015"></a> 15 {

<a name="l00016"></a> 16 

<a name="l00022"></a>[ 22](classsimulation__framework_1_1core_1_1CliParser.xhtml) class [CliParser](classsimulation__framework_1_1core_1_1CliParser.xhtml) final

<a name="l00023"></a> 23 {

<a name="l00024"></a> 24 public:

<a name="l00030"></a> 30 bool [Parse](classsimulation__framework_1_1core_1_1CliParser.xhtml#acc52be4547ba139f22bae8d100523c5f)(int argc, const char** argv);

<a name="l00031"></a> 31 

<a name="l00034"></a> 34 std::string [GetParserMessage](classsimulation__framework_1_1core_1_1CliParser.xhtml#a8879b6b14d755297ec58b8d7af3361f8)() const;

<a name="l00035"></a> 35 

<a name="l00038"></a> 38 const [SimulationParameters](structsimulation__framework_1_1core_1_1SimulationParameters.xhtml)&amp; [GetSimulationParameters](classsimulation__framework_1_1core_1_1CliParser.xhtml#a58ce70020052ac45bef2842d91826229)() const;

<a name="l00039"></a> 39 

<a name="l00043"></a> 43 std::optional&lt;std::string&gt; [GetInputFileByName](classsimulation__framework_1_1core_1_1CliParser.xhtml#a55ed7acb4801d80c5a331a02f19c0b9b)(const std::string&amp; name) const;

<a name="l00044"></a> 44 

<a name="l00047"></a> 47 std::string [GetSimulationConfig](classsimulation__framework_1_1core_1_1CliParser.xhtml#a2b6a9281bb2736988da72eae4e3a7bc8)() const;

<a name="l00048"></a> 48 

<a name="l00049"></a> 49 private:

<a name="l00055"></a> 55 bool ConvertFileStringIntoFiles(const std::vector&lt;std::string&gt;&amp; input_args, std::vector&lt;File&gt;&amp; files);

<a name="l00056"></a> 56 

<a name="l00058"></a> 58 [SimulationParameters](structsimulation__framework_1_1core_1_1SimulationParameters.xhtml) core_parameters_{};

<a name="l00059"></a> 59 

<a name="l00061"></a> 61 std::string parser_message_{};

<a name="l00062"></a> 62 };

<a name="l00063"></a> 63 

<a name="l00064"></a> 64 } // namespace core

<a name="l00065"></a> 65 } // namespace simulation\_framework