26#ifndef VP_PARSE_ARGV_H
27#define VP_PARSE_ARGV_H
29#include <visp3/core/vpConfig.h>
30#include <visp3/core/vpException.h>
180#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_NO_DEFAULTS
No default options like -help.
@ ARGV_NO_PRINT
No printings.
@ ARGV_DONT_SKIP_FIRST_ARG
Don't skip first argument.
@ ARGV_NO_LEFTOVERS
Print an error message if an option is not in the argument list.
@ 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_END
End of the argument list.
@ ARGV_HELP
Argument is for help displaying.