cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
stat_bench::runner::CommandLineParser Class Reference

Class to parse command line arguments. More...

#include <stat_bench/runner/command_line_parser.h>

+ Collaboration diagram for stat_bench::runner::CommandLineParser:

Public Member Functions

 CommandLineParser ()
 Constructor.
 
 CommandLineParser (CommandLineParser &&)=delete
 
 CommandLineParser (const CommandLineParser &)=delete
 
 ~CommandLineParser ()
 Destructor.
 
auto cli () -> lyra::cli &
 Access to the command line interface definition.
 
auto config () -> const Config &
 Get the configuration.
 
auto operator= (CommandLineParser &&) -> CommandLineParser &=delete
 
auto operator= (const CommandLineParser &) -> CommandLineParser &=delete
 
void parse_cli (int argc, const char **argv)
 Parse command line arguments.
 

Detailed Description

Class to parse command line arguments.

Definition at line 34 of file command_line_parser.h.

Constructor & Destructor Documentation

◆ CommandLineParser()

stat_bench::runner::CommandLineParser::CommandLineParser ( )

Constructor.

Definition at line 34 of file command_line_parser.cpp.

Member Function Documentation

◆ cli()

auto stat_bench::runner::CommandLineParser::cli ( ) -> lyra::cli&
inlinenodiscard

Access to the command line interface definition.

Note
For usage of lyra::cli objects, see Lyra documentation.
Returns
Reference to the definition.

Definition at line 67 of file command_line_parser.h.

◆ config()

auto stat_bench::runner::CommandLineParser::config ( ) -> const Config&
inlinenodiscard

Get the configuration.

Returns
Configuration.

Definition at line 74 of file command_line_parser.h.

◆ parse_cli()

void stat_bench::runner::CommandLineParser::parse_cli ( int argc,
const char ** argv )

Parse command line arguments.

Parameters
[in]argcNumber of arguments.
[in]argvArguments.

Definition at line 120 of file command_line_parser.cpp.


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