57 #include <visp/vpDebug.h>
58 #include <visp/vpParseArgv.h>
64 main(
int argc,
const char ** argv)
72 double d_val = 3.1415;
75 vpParseArgv::vpArgvInfo argTable[] =
93 cout <<
"Your parameters: " << endl;
94 cout <<
" Integer value: " << i_val << endl;
95 cout <<
" Float value: " << f_val << endl;
96 cout <<
" Double value: " << d_val << endl << endl;
97 cout <<
" Flag : " << flag << endl << endl;
99 cout <<
"Call " << argv[0]
100 <<
" -h to see how to change these parameters." << endl;
105 std::cout <<
"Catch a ViSP exception: " << e << std::endl;
error that can be emited by ViSP classes.
Command line argument parsing.