core/service/grpc/cli/cli_server.h
Classes
Namespaces
Includes
- core/export/simfwk_core_export.h
- core/service/grpc/cli/i_cli_server.h
- core/service/sim_runner/i_sim_runner.h
- <atomic>
- <thread>
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
core/service/grpc/cli/cli_server.h
#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
Was this page helpful?