    

 ## On this page

  

 

 # simulation\_framework::core::SimfwkCliServer Class Reference

 Last update: 16.07.2025 

class [SimfwkCliServer](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml "class SimfwkCliServer") [More...](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml#details)

`#include <<a class="el" href="cli__server_8h_source.xhtml">cli_server.h</a>>`

Inheritance diagram for simulation_framework::core::SimfwkCliServer:

![Inheritance graph](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r2_2/classsimulation__framework_1_1core_1_1SimfwkCliServer__inherit__graph.png)

\[[legend](graph_legend.xhtml)\]

Collaboration diagram for simulation_framework::core::SimfwkCliServer:

![Collaboration graph](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r2_2/classsimulation__framework_1_1core_1_1SimfwkCliServer__coll__graph.png)

\[[legend](graph_legend.xhtml)\]

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [SimfwkCliServer](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml#a7d45c7dc24e6751063c9894339912009) ([const](classsimulation__framework_1_1core_1_1Topic.xhtml) std::string &amp;[server\_address](classsimulation__framework_1_1core_1_1Topic.xhtml)) ctor of grpc cli server   
 <a id="a8cd61043746cbaa3ac45453188b51d99" name="a8cd61043746cbaa3ac45453188b51d99"></a> **~SimfwkCliServer** () dtor of grpc cli server   
 [void](classsimulation__framework_1_1core_1_1Topic.xhtml) [WaitForCommand](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml#ab9d3d3b02f9601efb7c4c979ffccce06) () calling this to ensure the server is running and waiting for command to do any action.   
 std::string [GetServerAddress](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml#a8f16cb74b31d87361ee4da1b5c7ab9da) () get grpc server address of cli server   
 [void](classsimulation__framework_1_1core_1_1Topic.xhtml) [BindSimRunner](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml#a2298836e929027f610ee47cc6596616d) (std::unique\_ptr&lt; [simulation\_framework::core::ISimRunner](classsimulation__framework_1_1core_1_1ISimRunner.xhtml) &gt; [sim\_runner](classsimulation__framework_1_1core_1_1Topic.xhtml)) set sim runner pointer which to be controlled   
 <a id="details" name="details"></a>## Detailed Description

class [SimfwkCliServer](classsimulation__framework_1_1core_1_1SimfwkCliServer.xhtml "class SimfwkCliServer")

simulation framework cli server. The server holds an entity of simulation framework and forward user command to it.

Definition at line [27](cli__server_8h_source.xhtml#l00027) of file [cli\_server.h](cli__server_8h_source.xhtml).



## Constructor &amp; Destructor Documentation

<a id="a7d45c7dc24e6751063c9894339912009" name="a7d45c7dc24e6751063c9894339912009"></a>## [◆ ](#a7d45c7dc24e6751063c9894339912009)SimfwkCliServer()

 simulation\_framework::core::SimfwkCliServer::SimfwkCliServer  ( [const](classsimulation__framework_1_1core_1_1Topic.xhtml) std::string &amp;  *server\_address*) 

ctor of grpc cli server

Parameters server\_addressgRPC server address 



## Member Function Documentation

<a id="a2298836e929027f610ee47cc6596616d" name="a2298836e929027f610ee47cc6596616d"></a>## [◆ ](#a2298836e929027f610ee47cc6596616d)BindSimRunner()

 [void](classsimulation__framework_1_1core_1_1Topic.xhtml) simulation\_framework::core::SimfwkCliServer::BindSimRunner  ( std::unique\_ptr&lt; [simulation\_framework::core::ISimRunner](classsimulation__framework_1_1core_1_1ISimRunner.xhtml) &gt;  *sim\_runner*)   virtual 

set sim runner pointer which to be controlled

Parameters sim\_runnera pointer of simfwk runner. This is the mean entity of simulation framework and being hold by This is the mean entity of simulation framework and being hold by the simfwk cli server. Whatever user command is given by cli, will be passed into the runner and execute the logic Implements [simulation\_framework::core::ISimfwkCliServer](classsimulation__framework_1_1core_1_1ISimfwkCliServer.xhtml).





<a id="a8f16cb74b31d87361ee4da1b5c7ab9da" name="a8f16cb74b31d87361ee4da1b5c7ab9da"></a>## [◆ ](#a8f16cb74b31d87361ee4da1b5c7ab9da)GetServerAddress()

 std::string simulation\_framework::core::SimfwkCliServer::GetServerAddress  ( )   virtual 

get grpc server address of cli server

Implements [simulation\_framework::core::ISimfwkCliServer](classsimulation__framework_1_1core_1_1ISimfwkCliServer.xhtml).





<a id="ab9d3d3b02f9601efb7c4c979ffccce06" name="ab9d3d3b02f9601efb7c4c979ffccce06"></a>## [◆ ](#ab9d3d3b02f9601efb7c4c979ffccce06)WaitForCommand()

 [void](classsimulation__framework_1_1core_1_1Topic.xhtml) simulation\_framework::core::SimfwkCliServer::WaitForCommand  ( )   virtual 

calling this to ensure the server is running and waiting for command to do any action.

Implements [simulation\_framework::core::ISimfwkCliServer](classsimulation__framework_1_1core_1_1ISimfwkCliServer.xhtml).





---

The documentation for this class was generated from the following file:- [cli\_server.h](cli__server_8h_source.xhtml)