48 #include <visp/vpColVector.h>
49 #include <visp/vpDebug.h>
50 #include <visp/vpParseArgv.h>
56 #define GETOPTARGS "h"
64 void usage(
const char *name,
const char *badparam)
67 Test some vpColVector functionalities.\n\
78 fprintf(stdout,
"\nERROR: Bad parameter [%s]\n", badparam);
87 bool getOptions(
int argc,
const char **argv)
94 case 'h': usage(argv[0], NULL);
return false;
break;
97 usage(argv[0], optarg);
102 if ((c == 1) || (c == -1)) {
104 usage(argv[0], NULL);
105 std::cerr <<
"ERROR: " << std::endl;
106 std::cerr <<
" Bad argument " << optarg << std::endl << std::endl;
115 main(
int argc,
const char ** argv)
118 if (getOptions(argc, argv) ==
false) {
125 vpTRACE(
"------------------------");
126 vpTRACE(
"call std::cout << V;");
127 std::cout << V << std::endl;
129 vpTRACE(
"------------------------");
130 vpTRACE(
"call V.normalize();");
133 vpTRACE(
"------------------------");
134 vpTRACE(
"call std::cout << V;");
135 std::cout << V << std::endl;