The object of CmdLineArgsParser class parses parameters and its values transferred through the command line at program start-up.
More...
#include <CmdLineArgsParser.h>
The object of CmdLineArgsParser class parses parameters and its values transferred through the command line at program start-up.
Definition at line 21 of file CmdLineArgsParser.h.
◆ CmdLineArgsParser()
MF::Parser::CmdLineArgsParser::CmdLineArgsParser |
( |
| ) |
|
|
default |
◆ ~CmdLineArgsParser()
MF::Parser::CmdLineArgsParser::~CmdLineArgsParser |
( |
| ) |
|
|
default |
◆ New()
◆ parseCmdLineArgs()
void MF::Parser::CmdLineArgsParser::parseCmdLineArgs |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
const char *& |
pathToProgramConfigFile, |
|
|
const char *& |
pathToCaseFolder, |
|
|
const char *& |
scope, |
|
|
bool & |
verbose, |
|
|
bool & |
geometryOnly, |
|
|
int & |
CPU_ThreadsNr |
|
) |
| |
Definition at line 12 of file CmdLineArgsParser.cpp.
Referenced by New().
16 for (
int i = 1; i < argc; i++)
18 if (strcmp(argv[i],
"-h") == 0)
20 else if (strcmp(argv[i],
"-f") == 0)
24 pathToProgramConfigFile = argv[i+1];
27 else if (strcmp(argv[i],
"-cf") == 0)
31 pathToCaseFolder = argv[i+1];
34 else if (strcmp(argv[i],
"-g") == 0)
38 else if (strcmp(argv[i],
"-j") == 0)
42 CPU_ThreadsNr = std::stoul(argv[i+1]);
45 else if (strcmp(argv[i],
"-s") == 0)
52 else if (strcmp(argv[i],
"-v") == 0)
58 std::cout <<
"Unrecognised option \n\n" << argv[i] << std::endl;
The documentation for this class was generated from the following files: