utility class to parse command line arguments passed to FaceModel More...
#include <ArgParser.h>
Public Types | |
enum | Argument { CONFIG_FILE = 0, JSON_INPUT, MODEL_OUTFILE, HELP, COMPACT, PRETTY, VERBOSE, RESOURCE_PATH, NOOP, LAST_ARGUMENT = NOOP } |
enumeration that defines possible input arguments, used to denote the arguments to return More... | |
Public Member Functions | |
ArgParser (int argc, char **argv) | |
takes the input parameters from the main function directly and processes them More... | |
std::string | getArg (Argument arg) |
returns the value passed via commandline associated to a certain ArgParser::Argument More... | |
bool | helpRequested () |
getter for the help requested flag (-h/–help) More... | |
void | printHelp () |
prints the usage directly to std::cout | |
bool | jsonPretty () |
getter for the print json pretty flag (–pretty) More... | |
bool | isVerbose () |
getter for verbose flag (-v) More... | |
utility class to parse command line arguments passed to FaceModel
on the one hand this this class parses the input arguments on the other hand its used to generate the help page output
enumeration that defines possible input arguments, used to denote the arguments to return
ArgParser::ArgParser | ( | int | argc, |
char ** | argv | ||
) |
takes the input parameters from the main function directly and processes them
int | argc number of arguments passed in the array |
char | **argv character array holding the arguments passed via commandline |
std::string ArgParser::getArg | ( | ArgParser::Argument | arg | ) |
returns the value passed via commandline associated to a certain ArgParser::Argument
Argument | arg one of the enum values denoting the argument to return |
bool ArgParser::helpRequested | ( | ) |
getter for the help requested flag (-h/–help)
bool ArgParser::isVerbose | ( | ) |
getter for verbose flag (-v)
bool ArgParser::jsonPretty | ( | ) |
getter for the print json pretty flag (–pretty)