Skip to main content
Provides a command-line interface for simulation execution via dependency injection. #include <cli_provider.h>

Public Member Functions

Detailed Description

Provides a command-line interface for simulation execution via dependency injection. This class facilitates the creation of a command-line executable that executes a simulation on a specific simulation instance. The simulation instance is provided through a concrete implementation of the ISimInstanceCreator interface, enabling flexibility and modularity. The design supports scenarios where different simulation instances need to be created dynamically based on the implementation of the ISimInstanceCreator. See also ISimInstanceCreator, core::SimulationParameters An example of executable creation using CliProvider.

Constructor & Destructor Documentation

CliProvider()

Construct CliProvider to execute simulation based on given instance through command line options or args. Parameters

Member Function Documentation

GetCommandLineInterface()

Accesser of Cli reference. Returns The reference of ‘core::Cli’ object to let you do execution or enable the cli controller

GetCoreParameters()

Accesser of simulation parameters. Returns The generic simulation parameters parsed from command line inputs

Parse()

Parses command-line arguments. Processes the arguments passed from the process main function, allowing the application to configure or initialize based on the provided input. This function typically interprets options, flags, and positional arguments supplied via the command line. Parameters Returns true if the arguments were successfully parsed; otherwise, false. The documentation for this class was generated from the following file: