34 #include <visp3/core/vpConfig.h>
35 #include <visp3/core/vpException.h>
173 ARGV_NO_DEFAULTS = 0x1,
174 ARGV_NO_LEFTOVERS = 0x2,
175 ARGV_NO_ABBREV = 0x4,
177 ARGV_DONT_SKIP_FIRST_ARG = 0x8,
181 #ifndef DOXYGEN_SHOULD_SKIP_THIS
196 static vpArgvInfo defaultTable[2];
197 static bool parse(
int *argcPtr,
const char **argv, vpArgvInfo *argTable,
int flags);
198 static int parse(
int argc,
const char **argv,
const char *validOpts,
const char **param);
201 static void printUsage(vpArgvInfo *argTable,
int flags);
Command line argument parsing.
@ ARGV_DOUBLE
Argument is associated to a double.
@ ARGV_LONG
Argument is associated to a long.
@ ARGV_STRING
Argument is associated to a char * string.
@ ARGV_FLOAT
Argument is associated to a float.
@ ARGV_CONSTANT
Stand alone argument. Same as vpParseArgv::ARGV_CONSTANT_INT.
@ ARGV_INT
Argument is associated to an int.
@ ARGV_CONSTANT_BOOL
Stand alone argument associated to a bool var that is set to true.
@ ARGV_CONSTANT_INT
Stand alone argument associated to an int var that is set to 1.
@ ARGV_HELP
Argument is for help displaying.