Skip to main content

AVxcelerate Simulation Framework 2025 R2

cli_server

Last update: 16.07.2025
1
5
6#pragma once
7
8#include "core/service/grpc/cli/i_cli_server.h"
9#include "core/service/sim_runner/i_sim_runner.h"
10#include <atomic>
11#include <thread>
12
18{
19namespace core
20{
21
23
28{
29 public:
32 SimfwkCliServer(const std::string& server_address);
33
36
39
41 std::string GetServerAddress();
42
47 void BindSimRunner(std::unique_ptr<simulation_framework::core::ISimRunner> sim_runner);
48
49 private:
50 std::string server_address_;
51 std::atomic_bool sim_runner_binded_{false};
52 std::thread grpc_server_thread_;
53};
54
55} // namespace core
56} // namespace simulation_framework
void BindSimRunner(std::unique_ptr< simulation_framework::core::ISimRunner > sim_runner)
set sim runner pointer which to be controlled
SimfwkCliServer(const std::string &server_address)
ctor of grpc cli server
~SimfwkCliServer()
dtor of grpc cli server
std::string GetServerAddress()
get grpc server address of cli server
void WaitForCommand()
calling this to ensure the server is running and waiting for command to do any action.
This is the concrete Topic class that can be used for creation of a communication channel with given ...
Definition topic.h:38
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.

Connect with Ansys