comparison audioDB.cpp @ 10:3ab41608a474

added ignore flag for first column of features (not working yet)
author mas01mc
date Thu, 26 Jul 2007 06:58:39 +0000
parents 378c2483c926
children 3d134836ea14
comparison
equal deleted inserted replaced
9:378c2483c926 10:3ab41608a474
133 queryPoint(0), 133 queryPoint(0),
134 usingQueryPoint(0), 134 usingQueryPoint(0),
135 isClient(0), 135 isClient(0),
136 isServer(0), 136 isServer(0),
137 port(0), 137 port(0),
138 timesTol(0.1){ 138 timesTol(0.1),
139 ignoreCols(0){
139 140
140 if(processArgs(argc, argv)<0){ 141 if(processArgs(argc, argv)<0){
141 printf("No command found.\n"); 142 printf("No command found.\n");
142 cmdline_parser_print_version (); 143 cmdline_parser_print_version ();
143 if (strlen(gengetopt_args_info_purpose) > 0) 144 if (strlen(gengetopt_args_info_purpose) > 0)
279 error("Could not open times file for reading", timesFileName); 280 error("Could not open times file for reading", timesFileName);
280 usingTimes=1; 281 usingTimes=1;
281 } 282 }
282 } 283 }
283 return 0; 284 return 0;
285 }
286
287 if(args_info.ignore_given){
288 ignoreCols=args_info.ignore_arg;
289 if(ignoreCols<0 || ignoreCols>100){
290 if(verbose)
291 cout << "warning: ignoring ignore which is out of range:" << ignoreCols << endl;
292 ignoreCols=0;
293 }
284 } 294 }
285 295
286 if(args_info.BATCHINSERT_given){ 296 if(args_info.BATCHINSERT_given){
287 command=COM_BATCHINSERT; 297 command=COM_BATCHINSERT;
288 dbName=args_info.database_arg; 298 dbName=args_info.database_arg;