    

 ## On this page

  

 

 # cli

 Last update: 16.07.2025 

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

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

<a id="l00006" name="l00006"></a> 6\#pragma once

<a id="l00007" name="l00007"></a> 7 

<a id="l00008" name="l00008"></a> 8\#include "core/service/grpc/cli/i\_cli\_server.h"

<a id="l00009" name="l00009"></a> 9\#include "core/service/sim\_runner/i\_sim\_runner.h"

<a id="l00010" name="l00010"></a> 10\#include &lt;memory&gt;

<a id="l00011" name="l00011"></a> 11 

<a id="l00016" name="l00016"></a> 16namespace [simulation\_framework](namespacesimulation__framework.xhtml)

<a id="l00017" name="l00017"></a> 17{

<a id="l00018" name="l00018"></a> 18namespace [core](namespacecore.xhtml)

<a id="l00019" name="l00019"></a> 19{

<a id="l00020" name="l00020"></a> 20 

<a id="l00026" name="l00026"></a>[ 26](classsimulation__framework_1_1core_1_1Cli.xhtml)class [Cli](classsimulation__framework_1_1core_1_1Cli.xhtml)

<a id="l00027" name="l00027"></a> 27{

<a id="l00028" name="l00028"></a> 28 public:

<a id="l00032" name="l00032"></a>[ 32](classsimulation__framework_1_1core_1_1Cli.xhtml#a807aa80e06431cbd27fe12c4856b668f) [Cli](classsimulation__framework_1_1core_1_1Cli.xhtml#a807aa80e06431cbd27fe12c4856b668f)(std::unique_ptr&lt;ISimRunner&gt; [sim\_runner](classsimulation__framework_1_1core_1_1Topic.xhtml), std::unique_ptr&lt;ISimfwkCliServer&gt; [simfwk\_cli\_server](classsimulation__framework_1_1core_1_1Topic.xhtml) = nullptr);

<a id="l00033" name="l00033"></a> 33 

<a id="l00038" name="l00038"></a>[ 38](classsimulation__framework_1_1core_1_1Cli.xhtml#a39259f9147a9151d89d372d4fa9f278f) bool [Execute](classsimulation__framework_1_1core_1_1Cli.xhtml#a39259f9147a9151d89d372d4fa9f278f)();

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

<a id="l00040" name="l00040"></a> 40 private:

<a id="l00042" name="l00042"></a> 42 std::unique_ptr&lt;ISimRunner&gt; sim_runner_;

<a id="l00043" name="l00043"></a> 43 

<a id="l00045" name="l00045"></a> 45 std::unique_ptr&lt;ISimfwkCliServer&gt; simfwk_cli_server_;

<a id="l00046" name="l00046"></a> 46};



<a id="l00047" name="l00047"></a> 47 

<a id="l00048" name="l00048"></a> 48} // namespace core

<a id="l00049" name="l00049"></a> 49} // namespace simulation\_framework

[simulation\_framework::core::Cli](classsimulation__framework_1_1core_1_1Cli.xhtml)

Handles the decision to start the simulation framework.

**Definition** [cli.h:27](cli_8h_source.xhtml#l00026)



[simulation\_framework::core::Cli::Execute](classsimulation__framework_1_1core_1_1Cli.xhtml#a39259f9147a9151d89d372d4fa9f278f)

bool Execute()

Executes the appropriate function based on the parsed parameters.



[simulation\_framework::core::Cli::Cli](classsimulation__framework_1_1core_1_1Cli.xhtml#a807aa80e06431cbd27fe12c4856b668f)

Cli(std::unique_ptr&lt; ISimRunner &gt; sim_runner, std::unique_ptr&lt; ISimfwkCliServer &gt; simfwk_cli_server=nullptr)

Constructs the Cli object.



[simulation\_framework::core::Topic](classsimulation__framework_1_1core_1_1Topic.xhtml)

This is the concrete Topic class that can be used for creation of a communication channel with given ...

**Definition** [topic.h:38](topic_8h_source.xhtml#l00037)



[core](namespacecore.xhtml)

The namespace for all core functionalities under namespace simulation_framework.



[simulation\_framework](namespacesimulation__framework.xhtml)

The top namespace for simulation framework.