33 virtual void run() = 0;
66 [[nodiscard]]
virtual auto has_dump() const ->
bool {
return false; }
auto operator=(CLIAbstract &&) -> CLIAbstract &=default
auto has_failed() const -> bool
void set_fail(bool is_failed)
virtual auto has_print_default_options() const -> bool
Check the flag whether the default options should be printed in JSON strings.
virtual void init()=0
Initialization of a CLI program.
virtual void post_parse()
Action done after the option parsing.
virtual void run()=0
Run the CLI program.
CLIAbstract()=default
Default constructor.
virtual ~CLIAbstract()=default
virtual void dump_options()
virtual void set_num_of_procs(int val)
CLIAbstract(const CLIAbstract &)=default
virtual void set_rank_num(int val)
virtual void setup_options(CLI::App &program_options)=0
Setup the CLI options given to the program.
auto has_inited() const -> bool
virtual auto has_dump() const -> bool
Check whether the options should be dump to a JSON file.
auto operator=(const CLIAbstract &) -> CLIAbstract &=default
void set_inited(bool is_inited)
CLIAbstract(CLIAbstract &&)=default
virtual void print_options()
Simulation of NeuLAND Bar/Paddle.