Skip to main content

AVxcelerate Simulation Framework 2026 R1 SP01

File cli_server.h

Last update: 22.04.2026

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

Classes

Namespaces

Includes

Source



#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

Connect with Ansys