    

 ## On this page

  

 

 # File cli\_server.h

 Last update: 22.04.2026 

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")

**Location**: `core/service/grpc/cli/cli_server.h`

## Classes

- [simulation\_framework::core::SimfwkCliServer](classsimulation__framework_1_1core_1_1SimfwkCliServer.md#classsimulation__framework_1_1core_1_1SimfwkCliServer)

## Namespaces

- [simulation\_framework](namespacesimulation__framework.md#namespacesimulation__framework)
- [simulation\_framework::core](namespacesimulation__framework_1_1core.md#namespacesimulation__framework_1_1core)

## Includes

- core/export/simfwk\_core\_export.h
- [core/service/grpc/cli/i\_cli\_server.h](i__cli__server_8h.md#i__cli__server_8h)
- [core/service/sim\_runner/i\_sim\_runner.h](i__sim__runner_8h.md#i__sim__runner_8h)
- 
- 

## Source

```cpp


#ifndef SIMFWK_CORE_SERVICE_GRPC_CLI_CLISERVER_H
#define SIMFWK_CORE_SERVICE_GRPC_CLI_CLISERVER_H

#include "core/export/simfwk_core_export.h"
#include "core/service/grpc/cli/i_cli_server.h"
#include "core/service/sim_runner/i_sim_runner.h"
#include <atomic>
#include <thread>

namespace simulation_framework
{
namespace core
{


class SIMFWK_CORE_API SimfwkCliServer : public ISimfwkCliServer
{
  public:
    SimfwkCliServer(const std::string& server_address);

    ~SimfwkCliServer();

    void WaitForCommand();

    std::string GetServerAddress();

    void BindSimRunner(std::unique_ptr<simulation_framework::core::ISimRunner> sim_runner);

  private:
    std::string server_address_;
    std::atomic_bool sim_runner_binded_{false};
    std::thread grpc_server_thread_;
};

}  // namespace core
}  // namespace simulation_framework

#endif  // SIMFWK_CORE_SERVICE_GRPC_CLI_CLISERVER_H

```