Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

simulation_framework::core::Cli Class Reference

Last update: 19.09.2025

Handles the decision to start the simulation framework. More...

#include <cli.h>

Public Member Functions

 Cli (std::unique_ptr< ISimRunner > sim_runner, std::unique_ptr< ISimfwkCliServer > simfwk_cli_server=nullptr)
 Constructs the Cli object.
 
bool Execute ()
 Executes the appropriate function based on the parsed parameters.
 

Detailed Description

Handles the decision to start the simulation framework.

The Cli class is responsible for determining if the simulation framework runner (ISimRunner) should be initialized and started based on the simulation parameters derived from command-line arguments. It can also interact with the CLI server if enabled.

See also
ISimRunner, ISimfwkCliServer

Definition at line 25 of file cli.h.

Constructor & Destructor Documentation

◆ Cli()

simulation_framework::core::Cli::Cli ( std::unique_ptr< ISimRunner sim_runner,
std::unique_ptr< ISimfwkCliServer simfwk_cli_server = nullptr 
)

Constructs the Cli object.

Parameters
sim_runnerInstance of the simulation runner controlled by the CLI.
simfwk_cli_serverOptional instance of the CLI server for CLI controller mode.

Member Function Documentation

◆ Execute()

bool simulation_framework::core::Cli::Execute ( )

Executes the appropriate function based on the parsed parameters.

This function decides which action to take, such as running the simulation or performing other tasks, based on the parameters provided during initialization.

Returns
true if execution is successful; otherwise, false.

The documentation for this class was generated from the following file:

Connect with Ansys